From: hickert Date: Fri, 25 Nov 2005 08:45:47 +0000 (+0000) Subject: Fixed : Don't ask for Templates when creating a Template X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=34e02c06bafa6a07c5bf1503fd14ad6b17ffc64d;p=gosa.git Fixed : Don't ask for Templates when creating a Template git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2059 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/TODO b/TODO index 351921e38..f76817972 100644 --- a/TODO +++ b/TODO @@ -5,8 +5,6 @@ Things to fix before 2.4: * Fix fai -> package lists -> add -> divlist which is totaly broken -* Don't ask for Templates when creating a Template - Target for 2.5: =============== diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index 623d7f3bb..5226698b4 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -521,7 +521,8 @@ class userManagement extends plugin } /* Use template if there are any of them */ - if ((count($this->templates) && !isset($_POST['new_template']))||($s_action=="create_user_from_tpl")){ + + if ((count($this->templates) && ($s_action!='new_tpl'))||($s_action=="create_user_from_tpl")){ foreach(array("sn", "givenName", "uid", "got_uid", "templates") as $attr){ $smarty->assign("$attr", $this->$attr); }