From 77fc464236d0bba323392610398053c4edcdd174 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 17 Dec 2007 07:35:28 +0000 Subject: [PATCH] Added checks to environment multiple edit git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8132 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/environment/class_environment.inc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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; -- 2.30.2