Code

Fixed : Don't ask for Templates when creating a Template
[gosa.git] / plugins / admin / users / class_userManagement.inc
index 623d7f3bb90ec66bcea75c9efc871b4c3c6ef9ad..5226698b41bb6e37fe1eb2872e980e6ba8b09f3a 100644 (file)
@@ -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);
         }