From b70aa5bfd23f647721ad7f3b9a0991eea616c8b4 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 26 Oct 2010 07:21:59 +0000 Subject: [PATCH] Updated ItemSelector handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20147 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_ItemSelector.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gosa-core/include/class_ItemSelector.inc b/gosa-core/include/class_ItemSelector.inc index 55b808691..75ea6db83 100644 --- a/gosa-core/include/class_ItemSelector.inc +++ b/gosa-core/include/class_ItemSelector.inc @@ -114,12 +114,12 @@ class ItemSelector { $first= true; $last_indent= 2; - foreach ($bases as $base => $dummy) { + foreach ($bases as $path => $data) { // Build path style display - $this->pathMapping[$base]= $base == $this->releaseBase? '/' : $dummy; - $this->releaseInfo[$base]['name'] = preg_replace("/^.*\//","",$base); - $this->releaseInfo[$base]['description'] = $dummy; + $this->pathMapping[$path]= $path == $this->releaseBase? '/' : $data['name']; + $this->releaseInfo[$path]['name'] = $data['name']; + $this->releaseInfo[$path]['description'] = $data['desc']; } // Save bases to session for autocompletion -- 2.30.2