From 830f66c82df4dba199a9a5608d82e7a946a85742 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 31 Mar 2006 08:11:23 +0000 Subject: [PATCH] Fixed release rename problems git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2941 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servRepository.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } } -- 2.30.2