summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 960783e)
raw | patch | inline | side by side (parent: 960783e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Mar 2010 16:45:35 +0000 (16:45 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Mar 2010 16:45:35 +0000 (16:45 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16390 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_userFilterEditor.inc | patch | blob | history |
diff --git a/gosa-core/include/class_userFilterEditor.inc b/gosa-core/include/class_userFilterEditor.inc
index 998994a7d809214fa81b49ca27641ae5e5462953..2409fdcfc2075af58cfa02bdc9cb0677902b6b88 100644 (file)
$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, '(');