Code

Fixed problem in object saving
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 25 May 2005 08:36:19 +0000 (08:36 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 25 May 2005 08:36:19 +0000 (08:36 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@407 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDB.inc
plugins/admin/systems/class_servService.inc

index 7a35f41db24fe33c231f1141411884aea1aebc2a..dd7c1d291b916f0aea477901021a5a261cbb9b57 100644 (file)
@@ -96,14 +96,16 @@ class servdb extends plugin
   /* Save data to object */
   function save_object()
   {
-    plugin::save_object();
-    
-    /* Save checkbox state */
-    foreach ($this->additionaloc as $oc => $dummy){
-      if (isset($_POST[$oc]) && $_POST[$oc] == '1'){
-        $this->objectclasses[$oc]= $oc;
-      } else {
-        unset($this->objectclasses[$oc]);
+    if (isset($_POST['dbtab'])){
+      plugin::save_object();
+      
+      /* Save checkbox state */
+      foreach ($this->additionaloc as $oc => $dummy){
+        if (isset($_POST[$oc]) && $_POST[$oc] == '1'){
+          $this->objectclasses[$oc]= $oc;
+        } else {
+          unset($this->objectclasses[$oc]);
+        }
       }
     }
   }
index 0af905aa2028bb0e7c67ddb4478e24034b82736a..22fb7ba96afc9c7cd624c7a21177d3b8924d9fd2 100644 (file)
@@ -172,14 +172,16 @@ foreach ($this->additionaloc as $oc => $dummy){
   /* Save data to object */
   function save_object()
   {
-     plugin::save_object();
-
-    /* Save checkbox state */
-    foreach ($this->additionaloc as $oc => $dummy){
-      if (isset($_POST[$oc]) && $_POST[$oc] == '1'){
-        $this->objectclasses[$oc]= $oc;
-      } else {
-        unset($this->objectclasses[$oc]);
+    if (isset($_POST['servicetab'])){
+      plugin::save_object();
+
+      /* Save checkbox state */
+      foreach ($this->additionaloc as $oc => $dummy){
+        if (isset($_POST[$oc]) && $_POST[$oc] == '1'){
+          $this->objectclasses[$oc]= $oc;
+        } else {
+          unset($this->objectclasses[$oc]);
+        }
       }
     }