Code

Enabled BACK and HOME buttons
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Apr 2011 12:48:48 +0000 (12:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Apr 2011 12:48:48 +0000 (12:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20645 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto-ng/admin/newConfigManagement/DeviceConfig-list.tpl
gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc

index 3d32b171405d3108786455f9335a341b41e1012d..5b2a60f2e0edae5b5dc73371ebe6a6143552b802 100644 (file)
@@ -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);
         }