From 582265443a170fa06be209a154b8fba27808954b Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 30 Mar 2010 06:57:32 +0000 Subject: [PATCH] Updated release selection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17373 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_releaseSelector.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_releaseSelector.inc b/gosa-core/include/class_releaseSelector.inc index f652c88ca..ee84de621 100644 --- a/gosa-core/include/class_releaseSelector.inc +++ b/gosa-core/include/class_releaseSelector.inc @@ -94,8 +94,8 @@ class releaseSelector { $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'] = $this->pathMapping[$base]; - $this->releaseInfo[$base]['description'] = ""; + $this->releaseInfo[$base]['name'] = ldap::fix(preg_replace('/(^|,)[a-z0-9]+=/i', '', $elements[0])); + $this->releaseInfo[$base]['description'] = $dummy; } // Save bases to session for autocompletion @@ -190,9 +190,11 @@ class releaseSelector { } $selected= $this->base == $base?" class='treeListSelected'":""; $link= "onclick=\"\$('bs_rebase_".$this->pid."').value='".base64_encode($base)."';$('submit_tree_base_".$this->pid."').click();\""; + $this->tree.= "
  • ". "". $this->gennonbreaks($this->releaseInfo[$base]['name']). + ($this->releaseInfo[$base]['description']==''?'':' ['.$this->gennonbreaks($this->releaseInfo[$base]['description']).']'). ""; $last_indent= $indent; -- 2.30.2