From 693d3d9d766d54cefb75e2c9ba2b19ad9007b558 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 4 Apr 2011 12:48:48 +0000 Subject: [PATCH] Enabled BACK and HOME buttons git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20645 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/newConfigManagement/DeviceConfig-list.tpl | 1 - .../newConfigManagement/class_newConfigManagement.inc | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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); } -- 2.30.2