From: cajus Date: Tue, 18 Apr 2006 09:31:45 +0000 (+0000) Subject: Added fix for missing depselect handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=df249e328674ebd19b26057551b094cb0d68f3f9;p=gosa.git Added fix for missing depselect handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3049 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 64ffe8b39..390a18f8c 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -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]; }