diff --git a/plugins/admin/applications/class_applicationManagement.inc b/plugins/admin/applications/class_applicationManagement.inc
index 9df2492d1c16c1a278de64e7233f92f8222ec31a..e5f6dbfc6f11dd54d159ba8e225640597fce7c2d 100644 (file)
var $acl = "";
var $enableReleaseManagement = false;
+ function IsReleaseManagementActivated($config)
+ {
+ /* Check if we should enable the release selection */
+ $tmp = search_config($this->config->data,"faiManagement","CLASS");
+ if(!empty($tmp)){
+ return(true);
+ }
+ return(false);
+ }
+
function applicationManagement ($config, $ui)
{
/* Save configuration for internal use */
/* Creat dialog object */
$this->DivListApplication = new divListApplication($this->config,$this);
+ if($this->IsReleaseManagementActivated($this->config)){
/* Check if we should enable the release selection */
- $tmp = search_config($this->config->data,"faiManagement","CLASS");
- if(!empty($tmp)){
$this->enableReleaseManagement = true;
/* Hide SubSearch checkbox */