Code

Back button wasn't working anymore after moving deparment get/ post handling into...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 May 2006 04:35:35 +0000 (04:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 May 2006 04:35:35 +0000 (04:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3272 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_MultiSelectWindow.inc

index 11c86d7c0a8ca29db5ed94aa01c49f2589076d71..9a5c862ff049c1b6d438d6596e4f4dfbc25a6fb0 100644 (file)
@@ -359,7 +359,7 @@ class MultiSelectWindow{
 
 
                        /* If Back-button is pressed, move back one step in DN */
-                       if($s_action == "back"){
+                       if($s_action=="back"){
                                //FIXME: This is not 100% correct. We'll only display ou's, but there may be
                                //       a step between. You'll stumble in a "hidden" department in this case.
                                $base_back= preg_replace("/^[^,]+,/", "", $_SESSION['CurrentMainBase']);
@@ -370,9 +370,9 @@ class MultiSelectWindow{
 
                                /* Check if the department exists, otherwise revert to the configure base DN */
                                if(isset($this->config->departments[$base_back])){
-                                       $_SESSION['CurrentMainBase']= $this->config->departments[$base_back];
+                                       $this->selectedBase= $this->config->departments[$base_back];
                                }else{
-                                       $_SESSION['CurrentMainBase']= $this->config->departments['/'];
+                                       $this->selectedBase= $this->config->departments['/'];
                                }
                        }
                }