Code

Fixed release rename problems
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 31 Mar 2006 08:11:23 +0000 (08:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 31 Mar 2006 08:11:23 +0000 (08:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2941 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servRepository.inc

index 6b96cd3e5d4b19bfa5de8b540c8e6fc7f95ba0b5..eaa059376821e26edad51f9b8d512aa757f94ab1 100644 (file)
@@ -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;        
       }
     }