From ec97b375bf59bb7d0f6f7082c12f4f1a16156d99 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 14 Sep 2010 09:54:11 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_tabs.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.30.2