From: hickert Date: Fri, 16 May 2008 13:32:13 +0000 (+0000) Subject: Updated system activation X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8b05c1ead14701820957f615266bc10453001427;p=gosa.git Updated system activation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10932 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 943f8c621..53ead43a9 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -312,8 +312,11 @@ class systems extends plugin $acl_cat = $tabs[$selected_system]["ACL"]; /* Go through all objects that should be activated */ - foreach($this->system_activation_object as $dn){ + foreach($this->system_activation_object as $key => $dn){ + /* Remove entry from list, to avoid page-reload problems */ + unset($this->system_activation_object[$key]); + /* Load permissions for selected 'dn' and check if we're allowed to create this 'dn' */ $this->dn = $dn; @@ -370,7 +373,7 @@ class systems extends plugin // Enable activation foreach (array("servgeneric", "workgeneric", "termgeneric") as $cls){ if (isset($this->systab->by_object[$cls])){ - $this->systab->by_object["workstartup"]->auto_activate= TRUE; + $this->systab->by_object[$cls]->auto_activate= TRUE; } } @@ -382,7 +385,7 @@ class systems extends plugin /* Don't save directly if there is no objectGroup selected. The user will then be able to configure the missing attributes on his own. - */ + */ if($selected_group != "none"){ $this->systab->save(); $this->systab = NULL;