Code

Maded name/description to must values.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Mar 2010 16:45:35 +0000 (16:45 +0000)
committerhickert <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

index 998994a7d809214fa81b49ca27641ae5e5462953..2409fdcfc2075af58cfa02bdc9cb0677902b6b88 100644 (file)
@@ -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, '(');