From: hickert Date: Fri, 31 Mar 2006 08:11:23 +0000 (+0000) Subject: Fixed release rename problems X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=830f66c82df4dba199a9a5608d82e7a946a85742;p=gosa.git Fixed release rename problems git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2941 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc index 6b96cd3e5..eaa059376 100644 --- a/plugins/admin/systems/class_servRepository.inc +++ b/plugins/admin/systems/class_servRepository.inc @@ -214,9 +214,15 @@ class servrepository extends plugin } }else{ $obj = $this->dialog->save(); + if($this->dialog->is_new_name()){ + $oldname = $this->dialog->initialy_was; + $this->repositories[$obj['Release']]=$obj; + unset($this->repositories[$oldname]); + }else{ + $this->repositories[$obj['Release']]=$obj; + } $this->dialog = NULL; $this->is_dialog= false; - $this->repositories[$obj['Release']]=$obj; } }