Code

Updated class tabs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Sep 2010 13:27:26 +0000 (13:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 13 Sep 2010 13:27:26 +0000 (13:27 +0000)
-Added a hidden variable which keeps track of plugin modifications.

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

gosa-core/include/class_tabs.inc

index 6d1b5e871781daf574a885a21751473dd6e8ffe6..339e20f1fcf6a7c3b9d2e57a604ddfa235061a50 100644 (file)
@@ -157,6 +157,13 @@ class tabs
             "\n          {$display}".
             "\n        </div>";
     }
+
+    // Detect if we've modifications right now.
+    foreach ($this->by_name as $class => $name){
+        $this->isPluginModified |= $this->by_object[$class]->is_modified;
+    }
+    $display="<input style='width:100%;' type='text' id='pluginModified' name='pluginModified' value='{$this->isPluginModified}'>".$display;
+
     return ($display);
   }