From eaae7d3bee466349d74e7a76b55fb6477fcb1ff6 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 10 Mar 2010 16:45:35 +0000 Subject: [PATCH] Maded name/description to must values. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16390 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_userFilterEditor.inc | 5 +++++ 1 file changed, 5 insertions(+) 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, '('); -- 2.30.2