diff --git a/include/ort.class.php b/include/ort.class.php index 9c7dfa6a3..66021a4ad 100644 --- a/include/ort.class.php +++ b/include/ort.class.php @@ -1,5 +1,5 @@ db_add_param($this->ort_kurzbz).', '. 'bezeichnung='.$this->db_add_param($this->bezeichnung).', '. 'planbezeichnung='.$this->db_add_param($this->planbezeichnung).', '. 'max_person='.$this->db_add_param($this->max_person).', '. @@ -248,7 +251,7 @@ class ort extends basis_db 'updateamum='.$this->db_add_param($this->updateamum).', '. 'updatevon='.$this->db_add_param($this->updatevon).', '. 'content_id='.$this->db_add_param($this->content_id).' '. - 'WHERE ort_kurzbz = '.$this->db_add_param($this->ort_kurzbz).';'; + 'WHERE ort_kurzbz = '.$this->db_add_param(($this->ort_kurzbz_old!='')?$this->ort_kurzbz_old:$this->ort_kurzbz).';'; } if($this->db_query($qry)) diff --git a/vilesci/stammdaten/raum_details.php b/vilesci/stammdaten/raum_details.php index 36f71ecbb..04742f697 100644 --- a/vilesci/stammdaten/raum_details.php +++ b/vilesci/stammdaten/raum_details.php @@ -1,5 +1,5 @@ ort_kurzbz = $ort_kurzbz; @@ -100,6 +102,7 @@ $sg_update->telefonklappe = $telefonklappe; $sg_update->standort_id = $standort_id; $sg_update->content_id = $content_id; + $sg_update->ort_kurzbz_old = $ort_kurzbz_old; if ($_POST["neu"] == "true") @@ -208,15 +211,16 @@ { if($row->hierarchie>$hierarchiemax) $hierarchiemax=$row->hierarchie; - $htmlstr.= '