From c079c5ebb80f87f83191d8da71b07d514c1ca2e2 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 4 Apr 2011 13:02:51 +0000 Subject: [PATCH] Updated the ItemSelector git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20646 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_ItemSelector.inc | 28 ++++++++++++++++-------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/gosa-core/include/class_ItemSelector.inc b/gosa-core/include/class_ItemSelector.inc index 0cc795514..3d7bdbf21 100644 --- a/gosa-core/include/class_ItemSelector.inc +++ b/gosa-core/include/class_ItemSelector.inc @@ -138,13 +138,14 @@ class ItemSelector { if(isset($_REQUEST["BPID_{$this->pid}"]) && $_REQUEST["BPID_{$this->pid}"] == $this->pid) { if (isset($_POST['bs_rebase_'.$this->pid])) { $new_base= base64_decode(get_post('bs_rebase_'.$this->pid)); - - if (isset($this->pathMapping[$new_base])) { - $this->base= $new_base; - $this->action= 'rebase'; - } else { - $this->lastState= false; - return false; + if($new_base){ + if (isset($this->pathMapping[$new_base])) { + $this->base= $new_base; + $this->action= 'rebase'; + } else { + $this->lastState= false; + return false; + } } }else{ // Input field set? @@ -234,6 +235,7 @@ class ItemSelector { });"; } $this->tree.= ""; + $selected= $this->base == $this->releaseBase?"Selected":""; $this->tree.= "
pid."')\"> + / ["._("Root")."]