From: hickert Date: Tue, 24 Jun 2008 08:17:34 +0000 (+0000) Subject: Updated phoneAccount. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=71f8aa4953cc95e603fde39d3dc7927201d0c307;p=gosa.git Updated phoneAccount. -Save parameter changes back to databases. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@11407 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index cc75b6f3d..27fbbf800 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -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; } } }