Code

Updated release selection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jan 2010 11:02:53 +0000 (11:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jan 2010 11:02:53 +0000 (11:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15053 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiManagement.inc

index ff39c85538b455857289ba1bc09d82ad814be2e5..d962cf33bdbe57d1ea9d5b2fd8328912bfa93b0d 100644 (file)
@@ -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."&nbsp; "));
     }
     return($list);