Code

Added checks to environment multiple edit
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 Dec 2007 07:35:28 +0000 (07:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 17 Dec 2007 07:35:28 +0000 (07:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8132 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/environment/class_environment.inc

index 34fe3338534034ca203c5293dd3771fb0dc8ef32..86265ba2402232a777b98661fcf6236f2706f003 100644 (file)
@@ -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;