]> git.tokkee.org Git - gosa.git/commitdiff

Code

Updated base retrieval
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 29 Jan 2010 10:57:38 +0000 (10:57 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 29 Jan 2010 10:57:38 +0000 (10:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15444 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_baseSelector.inc

index fbb04a79c468ded8049c7768fca913f25492e2e4..ff9c44acef216e9ac57fd7e1bc44e043f3501e7f 100644 (file)
@@ -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;
+          }
         }
       }