From 12bd45df129f5cf90deda042ac30a40ab63e7f3d Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 10 May 2010 10:55:45 +0000 Subject: [PATCH] Updated defaultFaiRelease property -comes from plProperties now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18198 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../fai/admin/fai/class_faiManagement.inc | 35 +++++++++++++------ 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc index f9eadb3ff..d64658b9f 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -62,7 +62,8 @@ class faiManagement extends management } $this->fai_base = get_ou("faiBaseRDN").$this->config->current['BASE']; - $cfg_rel = $this->config->search("faiManagement","DEFAULTFAIRELEASE",array("menu")); + $cfg_rel = $this->config->get_cfg_value("faiManagement","defaultFaiRelease"); + if(!empty($cfg_rel)){ $this->fai_release = $cfg_rel; }else{ @@ -125,7 +126,7 @@ class faiManagement extends management $this->registerAction("PerformBranch","PerformBranch"); $releases = $this->getReleaseStates($this->config,$this->fai_base); - $this->releaseSelector = new releaseSelector($releases, $this->fai_release, $this->fai_release); + $this->releaseSelector = new releaseSelector($releases, $this->fai_release, $this->fai_base); parent::__construct($config, $ui, "FAI object", $headpage); } @@ -1204,15 +1205,27 @@ class faiManagement extends management static function plInfo() { - return (array( - "plShortName" => _("FAI releases"), - "plDescription" => _("FAI release management"), - "plSelfModify" => FALSE, - "plDepends" => array(), - "plPriority" => 0, - "plSection" => array("administration"), - "plCategory" => array("fai"=> array("description" => _("FAI"), - "objectClass" => "FAIclass")), + return (array( + "plShortName" => _("FAI releases"), + "plDescription" => _("FAI release management"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + + "plProperties" => + array( + array( + "name" => "defaultFaiRelease", + "type" => "dn", + "default" => "", + "description" => _("The property sets the default release which gets selected in the fai management."), + "check" => "gosaProperty::isDn", + "migrate" => "", + "group" => "fai", + "mandatory" => FALSE)), + + "plCategory" => array("fai"=> array("description" => _("FAI"),"objectClass" => "FAIclass")), "plProvidedAcls"=> array())); } } -- 2.30.2