Code

Added fix for missing depselect handling
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Apr 2006 09:31:45 +0000 (09:31 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Apr 2006 09:31:45 +0000 (09:31 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3049 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/posix/class_posixAccount.inc

index 64ffe8b39bd0109ea069af3d7c52cc25b85540c9..390a18f8cf742b6d89d8d18c30827a73666a06f2 100644 (file)
@@ -218,6 +218,11 @@ class posixAccount extends plugin
        plugin::execute();
   $display= "";
 
+  /* Department has changed? */
+  if(isset($_POST['depselect'])){
+    $_SESSION['CurrentMainBase']= validate($_POST['depselect']);
+  }
+
   if(!$isCopyPaste){
     /* Do we need to flip is_account state? */
     if (isset($_POST['modify_state'])){
@@ -342,6 +347,7 @@ class posixAccount extends plugin
         $sysfilter['regex']= $s;
       }
       register_global("sysfilter", $sysfilter);
+      print_a($sysfilter);
 
       /* Get workstation list */
       $exclude= "";
@@ -396,7 +402,7 @@ class posixAccount extends plugin
 
       /* Save data */
       $groupfilter= get_global("groupfilter");
-      foreach( array("depselect", "guser", "regex") as $type){
+      foreach( array("guser", "regex") as $type){
         if (isset($_POST[$type])){
           $groupfilter[$type]= $_POST[$type];
         }