From: hickert Date: Tue, 14 Sep 2010 09:54:11 +0000 (+0000) Subject: Updated plugin modification detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ec97b375bf59bb7d0f6f7082c12f4f1a16156d99;p=gosa.git Updated plugin modification detection -Once a plugins is modified, we cannot leave the ui-masks without acknowledgement git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19660 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_tabs.inc b/gosa-core/include/class_tabs.inc index a8111988c..99fd29694 100644 --- a/gosa-core/include/class_tabs.inc +++ b/gosa-core/include/class_tabs.inc @@ -159,6 +159,12 @@ class tabs } // Detect if we've modifications right now. + // - A plugin state has to be changed, this is not a goo solution, but + // currently it does what we want. + // (It would be better to ask the plugins if something has changed) + $this->isPluginModified |= isset($_POST['modify_state']); + + // - Capture the plugins modification status. foreach ($this->by_name as $class => $name){ $this->isPluginModified |= (isset($this->by_object[$class]->is_modified)) && $this->by_object[$class]->is_modified; }