From: hickert Date: Thu, 8 May 2008 05:32:25 +0000 (+0000) Subject: Updated management plugins, re-initialize after apply was pressed. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1eb25110ab15f904b8865560c884132193dd7bda;p=gosa.git Updated management plugins, re-initialize after apply was pressed. -Call tabs::re_init(); git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10832 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/groups/class_groupManagement.inc b/gosa-core/plugins/admin/groups/class_groupManagement.inc index b33b5f81f..5cd2c527c 100644 --- a/gosa-core/plugins/admin/groups/class_groupManagement.inc +++ b/gosa-core/plugins/admin/groups/class_groupManagement.inc @@ -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, diff --git a/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc b/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc index 9d3a67d04..64899b4e4 100644 --- a/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc +++ b/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc @@ -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, diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc index e459784b2..6f7fd1276 100644 --- a/gosa-core/plugins/admin/users/class_userManagement.inc +++ b/gosa-core/plugins/admin/users/class_userManagement.inc @@ -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, diff --git a/gosa-plugins/goto/admin/applications/class_applicationManagement.inc b/gosa-plugins/goto/admin/applications/class_applicationManagement.inc index 6a3cb0a89..109847bd3 100644 --- a/gosa-plugins/goto/admin/applications/class_applicationManagement.inc +++ b/gosa-plugins/goto/admin/applications/class_applicationManagement.inc @@ -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, diff --git a/gosa-plugins/goto/admin/devices/class_deviceManagement.inc b/gosa-plugins/goto/admin/devices/class_deviceManagement.inc index 01e68e74e..d30870d5f 100644 --- a/gosa-plugins/goto/admin/devices/class_deviceManagement.inc +++ b/gosa-plugins/goto/admin/devices/class_deviceManagement.inc @@ -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, diff --git a/gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc b/gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc index fc6f05606..037b24343 100644 --- a/gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc +++ b/gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc @@ -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, diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc b/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc index 241a23ef9..dd69ef212 100644 --- a/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc +++ b/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc @@ -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, diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index ff7fc0083..6bf89fd2f 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -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,