From fbcce419b1d3f79532c81da6d5dd0d0ab1a98075 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 5 Jan 2010 11:02:53 +0000 Subject: [PATCH] Updated release selection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15053 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiManagement.inc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc index ff39c8553..d962cf33b 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -22,9 +22,9 @@ class faiManagement extends management { - var $plHeadline = "Roles"; - var $plDescription = "Role management"; - var $plIcon = "plugins/rolemanagement/images/plugin.png"; + var $plHeadline = "Software deployment"; + var $plDescription = "Manage software packages and deployment reciepes"; + var $plIcon = "plugins/fai/images/plugin.png"; // Tab definition protected $tabClass = "roletabs"; @@ -90,8 +90,16 @@ class faiManagement extends management $ldap = $this->config->get_ldap_link(); $ldap->ls("(objectClass=FAIbranch)",$base,array("ou","FAIstate")); + $cfg_rel = $this->config->search("faiManagement","DEFAULTFAIRELEASE",array("menu")); + while($release = $ldap->fetch()){ $list[$release['dn']] = $prefix.$release['ou'][0]; + + // Preset to prefered releaes if necessary + if(empty($this->fai_release) && $cfg_rel == $release['dn']){ + $this->fai_release = $release['dn']; + } + $list = array_merge($list,$this->getReleaseList($release['dn'],$prefix."  ")); } return($list); -- 2.30.2