Code

Updated phoneAccount.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Jun 2008 08:17:34 +0000 (08:17 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 24 Jun 2008 08:17:34 +0000 (08:17 +0000)
-Save parameter changes back to databases.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@11407 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/phoneaccount/class_phoneAccount.inc

index cc75b6f3d1fc12e90d17f064569be3e6643bcc38..27fbbf800febff56cb62496bbc461a0bd7aa34f8 100644 (file)
@@ -1160,6 +1160,7 @@ class phoneAccount extends plugin
  
         foreach($this->macroarray[$this->macro] as $key => $paras){
 
+          $old_macro_settings = $this->macroarray[$this->macro][$key];
           $backup = $this->macroarray[$this->macro][$key];  
 
           if(isset($_POST[$paras['var']])){
@@ -1179,8 +1180,11 @@ class phoneAccount extends plugin
               }
             }
           }
+          if(array_differs($old_macro_settings,$this->macroarray[$this->macro][$key])){
+            $this->is_modified = TRUE;
+          }
           if(count(array_diff($this->macroarray[$this->macro][$key],$backup))){
-            $this->modified = TRUE;
+            $this->is_modified = TRUE;
           }
         }
       }