Code

Check for required name in templates too.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 11 Jun 2008 12:24:35 +0000 (12:24 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 11 Jun 2008 12:24:35 +0000 (12:24 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11286 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/generic/class_user.inc

index a37cdb4c8607e1da87a8e286631f04d2e8934b33..7c34bc6b989e43c71cbdeceb5cb1ba74cdb6aca2 100644 (file)
@@ -1179,10 +1179,11 @@ class user extends plugin
     }
 
     /* In template mode, the uid and givenName are autogenerated... */
+    if ($this->sn == ""){
+      $message[]= msgPool::required(_("Name"));
+    }
+
     if (!$this->is_template){
-      if ($this->sn == ""){
-        $message[]= msgPool::required(_("Name"));
-      }
       if ($this->givenName == ""){
         $message[]= msgPool::required(_("Given name"));
       }