Code

Udpated Copy & Paste to support release handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Sep 2007 11:21:50 +0000 (11:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Sep 2007 11:21:50 +0000 (11:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7410 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/applications/class_applicationGeneric.inc

index 4516f8e93956b99b5541a7df9871392e1ec0c363..8d9620bc719ca467509e6bef4f92cf8167f5b55e 100644 (file)
@@ -485,6 +485,18 @@ class application extends plugin
     if(isset($_POST['cn'])){
       $this->cn = $_POST['cn'];
     }
+
+    $tmp = search_config($this->config->data,"faiManagement","CLASS");
+    if(!empty($tmp)) {
+      if(!preg_match("/^ou=apps,/",$_SESSION['appfilter']['release'])){
+        $this->isReleaseApplikation = true;  
+      }
+    }
+
+    if($_SESSION['CurrentMainBase']){
+      $this->base= $_SESSION['CurrentMainBase'];
+    }
+    
   }
 }
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: