From: hickert Date: Wed, 11 Jun 2008 12:24:35 +0000 (+0000) Subject: Check for required name in templates too. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d98f3f4d33978d29d979f63b6fd4cb71828f87d2;p=gosa.git Check for required name in templates too. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11286 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index a37cdb4c8..7c34bc6b9 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -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")); }