From: cajus Date: Thu, 3 Dec 2009 09:19:35 +0000 (+0000) Subject: Fixed copy'n paste switch for users X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e2f1ae3d12bf105bcd0975fdd4ac983eb0f027c4;p=gosa.git Fixed copy'n paste switch for users git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14865 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/Changelog b/gosa-core/Changelog index 524cb4578..403bd3e86 100644 --- a/gosa-core/Changelog +++ b/gosa-core/Changelog @@ -6,6 +6,7 @@ GOsa2 changelog - Fixed generation of kerberos host keys when DNS is enabled - Fixed template error message when no sshkey plugin is enabled - Speed up group and user removal by large factors + - Fix Problem where arrays got shortened by one in copy and paste * gosa 2.6.6 - Added ssh public key management diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc index 27ed27e18..1b14c0a5a 100644 --- a/gosa-core/plugins/admin/users/class_userManagement.inc +++ b/gosa-core/plugins/admin/users/class_userManagement.inc @@ -665,13 +665,17 @@ class userManagement extends management function copyPasteHandler($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="",$altAclPlugin="") { - $this->cpHandler->lastdn = ""; - $str = management::copyPasteHandler($action,$target,$all); - if($this->cpHandler->lastdn != "" && isset($_POST['passwordTodo']) && $_POST['passwordTodo'] == "new"){ - $this->pwd_change_queue[] = $this->cpHandler->lastdn; - return($this->handlePasswordQueue()); + if ($this->config->boolValueIsTrue("main", "copyPaste")){ + $this->cpHandler->lastdn = ""; + $str = management::copyPasteHandler($action,$target,$all); + if($this->cpHandler->lastdn != "" && isset($_POST['passwordTodo']) && $_POST['passwordTodo'] == "new"){ + $this->pwd_change_queue[] = $this->cpHandler->lastdn; + return($this->handlePasswordQueue()); + } + return($str); } - return($str); + + return ""; }