From: hickert Date: Tue, 19 Sep 2006 04:57:55 +0000 (+0000) Subject: Fixed bases X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7afa23783bbaf8d983427a43b13c19a398f01206;p=gosa.git Fixed bases git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4718 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 72994996b..04f89717e 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -1488,7 +1488,7 @@ echo "FIXME: remove_snapshot uses old acl's
"; if(isset($this->base) && isset($this->config->idepartments[$this->base])){ $deps[$this->base] = $this->config->idepartments[$this->base]; }else{ - echo "No default base found.
"; + echo "No default base found. ".$this->base."
"; } foreach($this->config->idepartments as $dn => $name){ diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc index 68b2ac8f5..53ace4e8c 100644 --- a/plugins/admin/applications/class_applicationGeneric.inc +++ b/plugins/admin/applications/class_applicationGeneric.inc @@ -63,7 +63,12 @@ class application extends plugin $this->base= dn2base($ui->dn); } } else { - $this->base= preg_replace ("/^[^,]+,[^,]+,/", "", $this->dn); + + if($this->isReleaseApplikation){ + $this->base = preg_replace("/^.*,ou=apps,/","",$this->dn); + }else{ + $this->base= preg_replace ("/^[^,]+,[^,]+,/", "", $this->dn); + } } } @@ -337,7 +342,9 @@ class application extends plugin $this->set_picture($_FILES['picture_file']['tmp_name']); } - $this->base= $_POST['base']; + if(isset($_POST['base'])){ + $this->base= $_POST['base']; + } } if($this->isReleaseApplikation){ diff --git a/plugins/admin/applications/generic.tpl b/plugins/admin/applications/generic.tpl index 39ae69ac9..648204181 100644 --- a/plugins/admin/applications/generic.tpl +++ b/plugins/admin/applications/generic.tpl @@ -47,9 +47,11 @@ {html_options options=$bases selected=$base_select} {/render} +{if !$isReleaseApplikation} {render acl=$baseACL disable_picture='images/folder_gray.png'} {/render} +{/if}