index 3c18ff4f58bf624585b6bf8db4b835a380960003..68dd3ca036630620cb822c31ef425b06a08aa96c 100644 (file)
// Save bases to session for autocompletion
session::global_set('pathMapping', $this->pathMapping);
// Save bases to session for autocompletion
session::global_set('pathMapping', $this->pathMapping);
+ session::global_set('department_info', $config->department_info);
}
}
if (isset($_POST['bs_input_'.$this->pid])) {
// Take over input field base
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;
// Check if base is available
$this->lastState= false;
}
// Close tree
}
// Close tree
- for ($i= 0; $i<=$last_indent; $i++) {
+ for ($i= 1; $i<$last_indent; $i++) {
$this->tree.= "</li></ul>\n";
}
$this->tree.= "</div>\n";
// Draw submitter if required
if ($this->submitButton) {
$this->tree.= "</li></ul>\n";
}
$this->tree.= "</div>\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.= "<input type='submit' style='display:none' name='submit_tree_base_".$this->pid."' id='submit_tree_base_".$this->pid."'>";
$this->tree.= "<input type='hidden' name='bs_rebase_".$this->pid."' id='bs_rebase_".$this->pid."'>";
}
$this->tree.= "<input type='submit' style='display:none' name='submit_tree_base_".$this->pid."' id='submit_tree_base_".$this->pid."'>";
$this->tree.= "<input type='hidden' name='bs_rebase_".$this->pid."' id='bs_rebase_".$this->pid."'>";