From: hickert Date: Thu, 21 Oct 2010 14:41:24 +0000 (+0000) Subject: Update ItemSelector X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0121bfd597fd705c3a92515761810bd8e6e3b318;p=gosa.git Update ItemSelector git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20114 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_ItemSelector.inc b/gosa-core/include/class_ItemSelector.inc index 88bdc56ec..9223a73cd 100644 --- a/gosa-core/include/class_ItemSelector.inc +++ b/gosa-core/include/class_ItemSelector.inc @@ -117,11 +117,8 @@ class ItemSelector { foreach ($bases as $base => $dummy) { // Build path style display - $elements= explode(',', substr($base, 0, strlen($base) - strlen($this->releaseBase))); - $elements= array_reverse($elements, true); - $this->pathMapping[$base]= $base == $this->releaseBase? '/' : ldap::fix(preg_replace('/(^|,)[a-z0-9]+=/i', '/', implode(',', $elements))); - - $this->releaseInfo[$base]['name'] = ldap::fix(preg_replace('/(^|,)[a-z0-9]+=/i', '', $elements[0])); + $this->pathMapping[$base]= $base == $this->releaseBase? '/' : $dummy; + $this->releaseInfo[$base]['name'] = preg_replace("/^.*\//","",$base); $this->releaseInfo[$base]['description'] = $dummy; } @@ -210,8 +207,9 @@ class ItemSelector { } $this->tree.= ""; - $selected= $this->base == $this->releaseBase?"Selected":""; - $this->tree.= "