X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Fclass_baseSelector.inc;h=68dd3ca036630620cb822c31ef425b06a08aa96c;hb=1e99420f077c6595a6098da8b0685a852668852f;hp=3c18ff4f58bf624585b6bf8db4b835a380960003;hpb=2d7a755fd9776db37c8b2b1cad0d26354103c459;p=gosa.git
diff --git a/gosa-core/include/class_baseSelector.inc b/gosa-core/include/class_baseSelector.inc
index 3c18ff4f5..68dd3ca03 100644
--- a/gosa-core/include/class_baseSelector.inc
+++ b/gosa-core/include/class_baseSelector.inc
@@ -96,6 +96,7 @@ class baseSelector {
// Save bases to session for autocompletion
session::global_set('pathMapping', $this->pathMapping);
+ session::global_set('department_info', $config->department_info);
}
@@ -121,7 +122,7 @@ class baseSelector {
if (isset($_POST['bs_input_'.$this->pid])) {
// Take over input field base
- if ($this->submitButton && isset($_POST['submit_base_'.$this->pid.'_x']) || !$this->submitButton) {
+ if ($this->submitButton && isset($_POST['submit_base_'.$this->pid]) || !$this->submitButton) {
// Check if base is available
$this->lastState= false;
@@ -196,14 +197,14 @@ class baseSelector {
}
// Close tree
- for ($i= 0; $i<=$last_indent; $i++) {
+ for ($i= 1; $i<$last_indent; $i++) {
$this->tree.= "\n";
}
$this->tree.= "\n";
// Draw submitter if required
if ($this->submitButton) {
- $this->tree.= image('images/lists/submit.png', null, "submit_base_".$this->pid, _("Submit"));
+ $this->tree.= image('images/lists/submit.png', "submit_base_".$this->pid, _("Submit"));
}
$this->tree.= "";
$this->tree.= "";