From: hickert Date: Mon, 19 May 2008 06:07:13 +0000 (+0000) Subject: Updated "New Device" handling, only set gotoMode to active if an ogroup was selected. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=788527188ae621cd48837f5334639ec00b2ff6de;p=gosa.git Updated "New Device" handling, only set gotoMode to active if an ogroup was selected. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10941 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 7a71d389b..c30b3aa8b 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -330,23 +330,23 @@ class systems extends plugin $this->systab->by_object[$tabname]->base = $this->DivListSystem->selectedBase; $this->systab->base = $this->DivListSystem->selectedBase; - /******* - * Set gotoMode to active if we there was an ogroup selected. - */ - $found = false; - foreach(array("workgeneric"=>"active","servgeneric"=>"active","termgeneric"=>"active") as $tab => $value){ - if(isset($this->systab->by_object[$tab]->gotoMode)) { - $found = true; - $this->systab->by_object[$tab]->gotoMode = $value; - } - } - if(!$found){ - msg_dialog::display(_("Internal error"), _("Cannot set mode to 'active'!"), ERROR_DIALOG); - } - if($selected_group != "none"){ + /******* + * Set gotoMode to active if we there was an ogroup selected. + */ + $found = false; + foreach(array("workgeneric"=>"active","servgeneric"=>"active","termgeneric"=>"active") as $tab => $value){ + if(isset($this->systab->by_object[$tab]->gotoMode)) { + $found = true; + $this->systab->by_object[$tab]->gotoMode = $value; + } + } + if(!$found){ + msg_dialog::display(_("Internal error"), _("Cannot set mode to 'active'!"), ERROR_DIALOG); + } + /******* * Update object group membership */