From: hickert Date: Mon, 17 Dec 2007 07:35:28 +0000 (+0000) Subject: Added checks to environment multiple edit X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=77fc464236d0bba323392610398053c4edcdd174;p=gosa.git Added checks to environment multiple edit git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8132 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/environment/class_environment.inc b/gosa-core/plugins/personal/environment/class_environment.inc index 34fe33385..86265ba24 100644 --- a/gosa-core/plugins/personal/environment/class_environment.inc +++ b/gosa-core/plugins/personal/environment/class_environment.inc @@ -1679,11 +1679,22 @@ $this->gotoKioskProfile= preg_replace("/^.*\//i","",$this->gotoKioskProfile); } + function multiple_check() + { + $message = plugin::multiple_check(); + $this->detect_grouptype(); + + if(preg_match("/[^0-9]/",$this->gotoProfileQuota) && in_array("gotoProfileQuota",$this->multi_boxes)) { + $message[]=_("Please set a valid profile quota size."); + } + return($message); + } + + function multiple_save_object() { if(isset($_POST['environment_multiple_posted'])){ plugin::multiple_save_object(); - if(isset($_POST['useProfile'])){ $this->useProfile = true;