Code

Updated edit handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Oct 2010 13:26:21 +0000 (13:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Oct 2010 13:26:21 +0000 (13:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20142 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc

index de2289dfc1b1ff7d114c4ad232638ff1f8268571..34ec9dba2e955c14b09d0113b1f34a04d216677e 100644 (file)
@@ -264,7 +264,6 @@ class newConfigManagement extends plugin
     }
 
 
-
     function editEntry($ids)
     {
         foreach($ids as $id){
@@ -283,12 +282,13 @@ class newConfigManagement extends plugin
 
     function openEntry($ids)
     {
-        foreach($ids as $id){
-            $item = $this->dataModel->getItemById($id);
-            if($item){
-                if(in_array($item['type'], array('Distribution', 'Release', 'Component'))){
-                    $this->setCurrentContainer($item['path'], $this->selectedContainer);
-                }
+        $id = $ids[0];
+        $item = $this->dataModel->getItemById($id);
+        if($item){
+            if(in_array($item['type'], array('Distribution', 'Release'))){
+                $this->setCurrentContainer($item['path'], $this->selectedContainer);
+            }else{
+                $this->editEntry(array($id));
             }
         }
     }