From: cajus Date: Fri, 29 Jan 2010 10:57:38 +0000 (+0000) Subject: Updated base retrieval X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=409945de6de1ff7616dfbe197ba174838f21d93b;p=gosa.git Updated base retrieval git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15444 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_baseSelector.inc b/gosa-core/include/class_baseSelector.inc index fbb04a79c..ff9c44ace 100644 --- a/gosa-core/include/class_baseSelector.inc +++ b/gosa-core/include/class_baseSelector.inc @@ -113,11 +113,15 @@ class baseSelector { } } elseif (isset($_POST['bs_input_'.$this->pid])) { - // Check if base is available - foreach ($this->pathMapping as $key => $path) { - if (mb_strtolower($path) == mb_strtolower($_POST['bs_input_'.$this->pid])) { - $this->base= $key; - break; + // Take over input field base + if ($this->submitButton && isset($_POST['submit_base_'.$this->pid.'_x']) || !$this->submitButton) { + + // Check if base is available + foreach ($this->pathMapping as $key => $path) { + if (mb_strtolower($path) == mb_strtolower($_POST['bs_input_'.$this->pid])) { + $this->base= $key; + break; + } } }