Code

Added a function that detects the release enabled status
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 May 2006 08:23:01 +0000 (08:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 May 2006 08:23:01 +0000 (08:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3450 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/applications/class_applicationManagement.inc

index 9df2492d1c16c1a278de64e7233f92f8222ec31a..bfbf623870acf72bbfab8d60ad9e8e4343a4eecf 100644 (file)
@@ -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 */