Code

Updated management plugins, re-initialize after apply was pressed.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 May 2008 05:32:25 +0000 (05:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 May 2008 05:32:25 +0000 (05:32 +0000)
-Call tabs::re_init();

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

gosa-core/plugins/admin/groups/class_groupManagement.inc
gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc
gosa-core/plugins/admin/users/class_userManagement.inc
gosa-plugins/goto/admin/applications/class_applicationManagement.inc
gosa-plugins/goto/admin/devices/class_deviceManagement.inc
gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc
gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc
gosa-plugins/systems/admin/systems/class_systemManagement.inc

index b33b5f81f50cc6b3ff8bf7c4e842fee3f3a68def..5cd2c527c7219599b3895f028dca35b61b3228a3 100644 (file)
@@ -270,6 +270,12 @@ class groupManagement extends plugin
           unset ($this->grouptab);
           $this->grouptab= NULL;
           session::un_set('objectinfo');
+        }else{
+
+          /* Reinitialize tab */
+          if($this->grouptab instanceof tabs){
+            $this->grouptab->re_init();
+          }
         }
       } else {
         /* Ok. There seem to be errors regarding to the tab data,
index 9d3a67d04faaed23eae805a4503a049321c2cee9..64899b4e4e3e97d873acbaa569cd66e9ecc7a33c 100644 (file)
@@ -412,6 +412,12 @@ class ogroupManagement extends plugin
           unset ($this->ogroup);
           $this->ogroup= NULL;
           session::un_set('objectinfo');
+        }else{
+
+          /* Reinitialize tab */
+          if($this->ogroup instanceof tabs){
+            $this->ogroup->re_init();
+          }
         }
       } else {
         /* Ok. There seem to be errors regarding to the tab data,
index e459784b26451d60537dcdfdbe38372d750ffc4d..6f7fd1276ab95f2346851300980f53a23c446782 100644 (file)
@@ -706,6 +706,12 @@ class userManagement extends plugin
           unset ($this->usertab);
           $this->usertab= NULL;
           session::un_set('objectinfo');
+        }else{
+        
+          /* Reinitialize tab */
+          if($this->usertab instanceof tabs){
+            $this->usertab->re_init();
+          }
         }
       } else {
         /* Ok. There seem to be errors regarding to the tab data,
index 6a3cb0a89741ae33aa1e2be44660662173d63fcf..109847bd36e1047dd48cbe9841ed10c8c8b0dbb0 100644 (file)
@@ -264,6 +264,12 @@ class applicationManagement extends plugin
           unset ($this->apptabs);
           $this->apptabs= NULL;
           session::un_set('objectinfo');
+        }else{
+
+          /* Reinitialize tab */
+          if($this->apptabs instanceof tabs){
+            $this->apptabs->re_init();
+          }
         }
       } else {
         /* Ok. There seem to be errors regarding to the tab data,
index 01e68e74ecf48723fba40e533dd150eb2bfbf6d3..d30870d5fcf3443b512f0a60f1acc14e87091866 100644 (file)
@@ -177,6 +177,12 @@ class deviceManagement extends plugin
           unset ($this->devicetabs);
           $this->devicetabs= NULL;
           session::un_set('objectinfo');
+        }else{
+
+          /* Reinitialize tab */
+          if($this->devicetabs instanceof tabs){
+            $this->devicetabs->re_init();
+          }
         }
       } else {
        /* Ok. There seem to be errors regarding to the tab data,
index fc6f056068617fce33bad440ecf1db9657b5f94e..037b243439ee35e22ae66211f875ac3911c4882c 100644 (file)
@@ -269,6 +269,12 @@ class mimetypeManagement extends plugin
           unset ($this->mimetabs);
           $this->mimetabs= NULL;
           session::un_set('objectinfo');
+        }else{
+
+          /* Reinitialize tab */
+          if($this->mimetabs instanceof tabs){
+            $this->mimetabs->re_init();
+          }
         }
       } else {
         /* Ok. There seem to be errors regarding to the tab data,
index 241a23ef9b1ba66683f9284159f817aa7cc522db..dd69ef212672992b2b5ee71db66946e096920e56 100644 (file)
@@ -178,9 +178,11 @@ class sudoManagement extends plugin
           $this->sudotabs= NULL;
           session::un_set('objectinfo');
         }else{
-          $this->dn = $this->sudotabs->dn;
-          $this->sudotabs= new sudotabs($this->config, $this->config->data['TABS']['SUDOTABS'], $this->dn);
-          session::set('objectinfo',$this->dn);
+
+          /* Reinitialize tab */
+          if($this->sudotabs instanceof tabs){
+            $this->sudotabs->re_init();
+          }
         }
       } else {
         /* Ok. There seem to be errors regarding to the tab data,
index ff7fc008387e5bc2276ca66d4ea559528178aa73..6bf89fd2fe8963fd76685a470d3dae5f2c7e5652 100644 (file)
@@ -996,9 +996,10 @@ class systems extends plugin
           session::un_set('objectinfo');
         }else{
       
-          /* Reinitialize tab classes, to ensure data consistency
-           */
-          $this->systab->re_init();
+          /* Reinitialize tab */
+          if($this->systab instanceof tabs){
+            $this->systab->re_init();
+          }
         }
       } else {
         /* Ok. There seem to be errors regarding to the tab data,