From: hickert Date: Tue, 30 May 2006 05:14:38 +0000 (+0000) Subject: Fixed kiosk profile remove message X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=461c8c1ab983c75194cd36da04f2499135a456f0;p=gosa.git Fixed kiosk profile remove message git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3552 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index c4fea2011..be9e18f04 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -432,17 +432,6 @@ class environment extends plugin $this->dialog=NULL; $this->is_dialog = false; } - $tmp = new kioskManagementDialog($this->config,$this->dn); - $list = $tmp->getKioskProfiles($this->newKioskProfiles); - - $list['none']=_("None"); - - $list = array_reverse($list); - - if(!isset($list[$this->gotoKioskProfile])){ - print_red(sprintf(_("The selected kiosk profile '%s' is no longer available, setting current profile to 'none'."),$this->gotoKioskProfile)); - $this->gotoKioskProfile = 'none'; - } /* Reassign help class */ $_SESSION['current_class_for_help'] = get_class($this); @@ -454,7 +443,10 @@ class environment extends plugin $this->dialog->acl = $this->acl; $this->is_dialog = true; } - + $tmp = new kioskManagementDialog($this->config,$this->dn); + $list = $tmp->getKioskProfiles($this->newKioskProfiles); + $list['none']=_("None"); + $list = array_reverse($list); $smarty->assign("gotoKioskProfiles",$list); $smarty->assign("gotoKioskProfileKeys",array_flip($list)); @@ -699,7 +691,17 @@ class environment extends plugin /* General behavior */ if((isset($this->dialog))&&($this->dialog!=NULL)&&(!empty($this->dialog))){ $this->dialog->save_object(); - return ($this->dialog->execute()); + $disp =$this->dialog->execute(); + + $tmp = new kioskManagementDialog($this->config,$this->dn); + $list = $tmp->getKioskProfiles($this->newKioskProfiles); + $list['none']=_("None"); + $list = array_reverse($list); + if(!isset($list[$this->gotoKioskProfile])){ + print_red(sprintf(_("The selected kiosk profile '%s' is no longer available, setting current profile to 'none'."),$this->gotoKioskProfile)); + $this->gotoKioskProfile = 'none'; + } + return($disp); } if($this->acl != "#none#"){ $smarty->assign("useProfileACL","");