From: hickert Date: Wed, 10 Mar 2010 16:45:35 +0000 (+0000) Subject: Maded name/description to must values. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eaae7d3bee466349d74e7a76b55fb6477fcb1ff6;p=gosa.git Maded name/description to must values. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16390 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userFilterEditor.inc b/gosa-core/include/class_userFilterEditor.inc index 998994a7d..2409fdcfc 100644 --- a/gosa-core/include/class_userFilterEditor.inc +++ b/gosa-core/include/class_userFilterEditor.inc @@ -144,6 +144,11 @@ class userFilterEditor extends plugin $msgs[] = msgPool::invalid(_("Name"), $this->name,"/[a-z0-9\-_ ]/i"); } + // Description is a must value. + if(empty($this->description)){ + $msgs[] = msgPool::required(_("Description")); + } + // Count the number of opening and closing brackets - exclude escaped ones. $f = preg_replace('/\\\\[\(\)]/',"",$this->filter); $o = substr_count($f, '(');