Code

Fixed base in save_object
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jun 2006 03:40:16 +0000 (03:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jun 2006 03:40:16 +0000 (03:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3968 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/mimetypes/class_mimetypeGeneric.inc

index b475b2f419624681a9e02e54c7cec13f94223e31..e13d62a75df88a83b5da3dba3a9acc578ac02bef 100644 (file)
@@ -111,9 +111,7 @@ class mimetype extends plugin
                /* Check if release Management is enabled */
                $tmp = search_config($this->config->data,"faiManagement","CLASS");
                if(!empty($tmp)) {
-                       if(!preg_match("/^ou=apps,/",$_SESSION['mimefilter']['release'])){
-                               $this->isReleaseMimeType= true;
-                       }
+                       $this->isReleaseMimeType= true;
                }
 
                /* Set base */  
@@ -329,6 +327,12 @@ class mimetype extends plugin
                if(isset($_POST['MimeGeneric'])){
                        plugin::save_object();
 
+      if(!$this->isReleaseMimeType){
+        if(isset($_POST['base'])){
+          $this->base = $_POST['base'];
+        }
+      }
+  
                        
                        /* Save radio buttons */
                        if(chkacl($this->acl,"gotoMimeLeftClickAction")== ""){