From 06e1f45cbae73d4d8194865bd10745ae1cbd900e Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 25 Oct 2010 13:26:21 +0000 Subject: [PATCH] Updated edit handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20142 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_newConfigManagement.inc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc index de2289dfc..34ec9dba2 100644 --- a/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc @@ -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)); } } } -- 2.30.2