diff --git a/cis/private/lvplan/stpl_detail.php b/cis/private/lvplan/stpl_detail.php
index dc31c7b54..29348281e 100644
--- a/cis/private/lvplan/stpl_detail.php
+++ b/cis/private/lvplan/stpl_detail.php
@@ -207,8 +207,10 @@ if ($num_rows_stpl>0)
';
$ort = new ort();
+ $i=0;
while($row = $db->db_fetch_object($erg_stpl))
{
+ $i++;
$unr = $row->unr;
$ortkurzbz = $row->ort_kurzbz;
$lehrfachkurzbz = $row->lehrfach;
@@ -259,8 +261,10 @@ if ($num_rows_repl>0)
echo '
'.$p->t('lvplan/reservierungen').'
';
echo '';
echo '| '.$p->t('global/titel').' | '.$p->t('lvplan/ort').' | '.$p->t('global/person').' | '.$p->t('global/beschreibung').' |
';
+ $i=0;
while($row = $db->db_fetch_object($erg_repl))
{
+ $i++;
$titel=$row->titel;
$ortkurzbz=$row->ort_kurzbz;
$titelpre=$row->titelpre;
diff --git a/include/ort.class.php b/include/ort.class.php
index caed5243e..fb9c082b7 100644
--- a/include/ort.class.php
+++ b/include/ort.class.php
@@ -368,8 +368,8 @@ class ort extends basis_db
FROM
public.tbl_ort
WHERE
- ort_kurzbz like '%".$this->db_escape($filter)."%'
- OR bezeichnung like '%".$this->db_escape($filter)."%'
+ lower(ort_kurzbz) like '%".$this->db_escape(mb_strtolower($filter))."%'
+ OR lower(bezeichnung) like '%".$this->db_escape(mb_strtolower($filter))."%'
ORDER BY ort_kurzbz;";
if(!$this->db_query($qry))