From: hickert Date: Mon, 4 Apr 2011 12:48:48 +0000 (+0000) Subject: Enabled BACK and HOME buttons X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=693d3d9d766d54cefb75e2c9ba2b19ad9007b558;p=gosa.git Enabled BACK and HOME buttons git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20645 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/DeviceConfig-list.tpl b/gosa-plugins/goto-ng/admin/newConfigManagement/DeviceConfig-list.tpl index 0401be9f2..963da86cc 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/DeviceConfig-list.tpl +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/DeviceConfig-list.tpl @@ -20,4 +20,3 @@
- diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc index 3d32b1714..5b2a60f2e 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc @@ -75,7 +75,14 @@ class newConfigManagement extends plugin if(isset($_POST['ROOT'])){ $this->setCurrentContainer('/root'); }elseif(isset($_POST['BACK'])){ - $this->setCurrentContainer('/root'); + + $path = $this->selectedContainer; + if($this->dataModel->itemExistsByPath($path)){ + $data = $this->dataModel->getItemByPath($path); + if($data['parentPath']){ + $this->setCurrentContainer($data['parentPath']); + } + } }else{ $this->setCurrentContainer($cont); }