X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-plugins%2Fgoto%2Fadmin%2Fmimetypes%2Fclass_mimetypeGeneric.inc;h=c5d52cf27d5a8d639de01f0ab5153e2b6d4d2414;hb=01c082f098a7163ea516260e6c134381381b6cc6;hp=71121377c2bbea1cc80d7152eaec4575c1bc344b;hpb=eecd84a0e6cd439d6c5d1b0c4b80cf343cbcea2b;p=gosa.git diff --git a/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc b/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc index 71121377c..c5d52cf27 100644 --- a/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc +++ b/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc @@ -37,9 +37,6 @@ class mimetype extends plugin var $DivApps = NULL; var $DivEApps = NULL; - /* Mime type release mode */ - var $isReleaseMimeType = false; - /* These vars will be copied too, if you use copy&paste mode */ var $CopyPasteVars = array("use_gotoMimeFilePattern","use_gotoMimeApplication","use_gotoMimeEmbeddedApplication","iconData", "gotoMimeLeftClickAction_I","gotoMimeLeftClickAction_E","gotoMimeLeftClickAction_Q","use_gotoMimeIcon"); @@ -120,12 +117,6 @@ class mimetype extends plugin } } - /* Check if release Management is enabled */ - $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs')); - if(!empty($tmp)) { - $this->isReleaseMimeType= true; - } - /* Set base */ if ($this->dn == "new"){ if(session::is_set('CurrentMainBase')){ @@ -350,7 +341,7 @@ class mimetype extends plugin } $smarty->assign("bases", $this->get_allowed_bases()); $smarty->assign("base_select", $this->base); - $smarty->assign("isReleaseMimeType", $this->isReleaseMimeType); + $smarty->assign("isReleaseMimeType", $this->is_release()); $smarty->assign("gotoMimeFilePatterns", $DivPatterns->DrawList()); $smarty->assign("gotoMimeApplications", $DivApps->DrawList()); $smarty->assign("gotoMimeEmbeddedApplications", $DivEApps->DrawList()); @@ -386,7 +377,7 @@ class mimetype extends plugin $this->base = $base_tmp; /* Only save base if we are not in release mode */ - if(!$this->isReleaseMimeType){ + if(!$this->is_release()){ /* Set new base if allowed */ $tmp = $this->get_allowed_bases(); @@ -543,7 +534,7 @@ class mimetype extends plugin if($this->is_release()){ $base = $this->parent->parent->mime_release; }else{ - $base = $this->base; + $base = get_ou("mimetypeou").$this->base; } $ldap->ls("(&(objectClass=gotoMimeType)(cn=".$this->cn."))",$base,array("cn"));