From 7f4a9930b2e7d586b93cdb8ca68049bc449a93ee Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 19 May 2006 08:23:01 +0000 Subject: [PATCH] Added a function that detects the release enabled status git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3450 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../applications/class_applicationManagement.inc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/plugins/admin/applications/class_applicationManagement.inc b/plugins/admin/applications/class_applicationManagement.inc index 9df2492d1..bfbf62387 100644 --- a/plugins/admin/applications/class_applicationManagement.inc +++ b/plugins/admin/applications/class_applicationManagement.inc @@ -34,6 +34,16 @@ class applicationManagement extends plugin 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 */ @@ -48,9 +58,8 @@ class applicationManagement extends plugin /* Creat dialog object */ $this->DivListApplication = new divListApplication($this->config,$this); + if($this->IsReleaseManagementActivated()){ /* 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 */ -- 2.30.2