summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0191c59)
raw | patch | inline | side by side (parent: 0191c59)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 30 Mar 2010 06:14:38 +0000 (06:14 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 30 Mar 2010 06:14:38 +0000 (06:14 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17368 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_releaseSelector.inc | patch | blob | history |
diff --git a/gosa-core/include/class_releaseSelector.inc b/gosa-core/include/class_releaseSelector.inc
index dc98422c4ae11b0b9fb78a850dbdc8bf1d8213ed..01de54013b6ec468e2d285c26ab8f5fffd4d1f86 100644 (file)
// Transfer data
$this->releaseBase = $releaseBase;
- $this->releaseInfo = $bases;
$this->setBases($bases);
$this->setBase($base);
}
function setBase($base)
{
+ $this->base= $base;
if (isset($this->pathMapping[$base])) {
- $this->base= $base;
$this->update(true);
}
}
function setBases($bases)
{
global $config;
-
+ $this->releaseInfo = array();
$this->pathMapping= array();
$selected= $this->base == $this->releaseBase?"Selected":"";
$first= true;
$elements= explode(',', substr($base, 0, strlen($base) - strlen($this->releaseBase)));
$elements= array_reverse($elements, true);
$this->pathMapping[$base]= $base == $this->releaseBase? '/' : ldap::fix(preg_replace('/(^|,)[a-z0-9]+=/i', '/', implode(',', $elements)));
+
+ $this->releaseInfo[$base]['name'] = $this->pathMapping[$base];
}
// Save bases to session for autocompletion
session::global_set('pathMapping', $this->pathMapping);
+ session::global_set('department_info', $this->releaseInfo);
}
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;
$link= "onclick=\"\$('bs_rebase_".$this->pid."').value='".base64_encode($base)."';$('submit_tree_base_".$this->pid."').click();\"";
$this->tree.= "<li>".
"<a$selected $link>".
- $this->gennonbreaks($this->releaseInfo[$base]).
+ $this->gennonbreaks($this->releaseInfo[$base]['name']).
"</a>";
$last_indent= $indent;