From d98f3f4d33978d29d979f63b6fd4cb71828f87d2 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 11 Jun 2008 12:24:35 +0000 Subject: [PATCH] Check for required name in templates too. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11286 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/personal/generic/class_user.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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")); } -- 2.30.2