Code

Disabled goFonDeliveryMode Post checks - there is no delivery mode posted
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Mar 2010 12:53:45 +0000 (12:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Mar 2010 12:53:45 +0000 (12:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17074 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc

index a217529071a629fdd78460711bd43f3fb7d7560c..403057da9e69560e0a0759359efb2e5821464b4a 100644 (file)
@@ -1329,13 +1329,13 @@ class phoneAccount extends plugin
 
       /* Save checkbox */
       $tmp = preg_replace("/[^a-z]/i","",$this->goFonDeliveryMode);
-      if($this->acl_is_writeable("goFonDeliveryMode",$SkipWrite)){
-        if(isset($_POST['fon_to_mail']) && !preg_match("/M/",$this->goFonDeliveryMode)){
-          $tmp .= "M";
-        }elseif(!isset($_POST['fon_to_mail']) && preg_match("/M/",$this->goFonDeliveryMode)){
-          $tmp  = preg_replace ("/M/","",$tmp);
-        }
-      }
+//     if($this->acl_is_writeable("goFonDeliveryMode",$SkipWrite)){
+//       if(isset($_POST['fon_to_mail']) && !preg_match("/M/",$this->goFonDeliveryMode)){
+//         $tmp .= "M";
+//       }elseif(!isset($_POST['fon_to_mail']) && preg_match("/M/",$this->goFonDeliveryMode)){
+//         $tmp  = preg_replace ("/M/","",$tmp);
+//       }
+//     }
       $this->goFonDeliveryMode= "[".$tmp."]";