From 9afda0220cf513ed56b0d16b0ff9fbb6954898e0 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Jun 2006 03:40:16 +0000 Subject: [PATCH] Fixed base in save_object git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3968 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/mimetypes/class_mimetypeGeneric.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/admin/mimetypes/class_mimetypeGeneric.inc b/plugins/admin/mimetypes/class_mimetypeGeneric.inc index b475b2f41..e13d62a75 100644 --- a/plugins/admin/mimetypes/class_mimetypeGeneric.inc +++ b/plugins/admin/mimetypes/class_mimetypeGeneric.inc @@ -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")== ""){ -- 2.30.2