Code

Added default release option to group apps.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Aug 2008 13:39:12 +0000 (13:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Aug 2008 13:39:12 +0000 (13:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12197 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc

index a61bb330c1f26f4bb1d352c4ccfc73ab1e680989..ff42dc878d50d84ef458ddb582b3aa9b3c65a01a 100644 (file)
@@ -34,7 +34,13 @@ class appgroup extends plugin
     }
 
     $this->Releases   = $this->getReleases();
-    $this->FAIrelease = "/";
+
+    /* Set intial release */
+    $this->FAIrelease = $config->search("faiManagement","DEFAULT_RELEASE",array("menu"));
+    if(empty($this->FAIrelease) || !isset($this->Releases[$this->FAIrelease])){
+      $this->FAIrelease = "/";
+    }
+
     $this->curbase    = $this->config->current['BASE'];
     $this->reload();