summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0f0cdd3)
raw | patch | inline | side by side (parent: 0f0cdd3)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Sep 2007 11:13:27 +0000 (11:13 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Sep 2007 11:13:27 +0000 (11:13 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7281 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_MultiSelectWindow.inc | patch | blob | history | |
plugins/admin/systems/class_baseSelectDialog.inc | patch | blob | history |
index 9d3b10008d59553723e9353114984316a412634e..b7d4bb9166f0147f76dd2962075f9132019acf70 100644 (file)
$this->SaveButtonString = _("Save");
$this->CloseButtonString = _("Close");
$this->filterName = $filterName;
-
+ $this->ui = get_userinfo();
$this->selectedBase = $_SESSION['CurrentMainBase'];
/* Check default values for SaveAdditionalVars */
if($s_action=="root"){
$this->selectedBase=($this->config->current['BASE']);
$dep_id = $this->ui->get_module_departments($this->module);
- $this->selectedBase = $dep_id[key($dep_id)];
+ if(isset($dep_id[key($dep_id)])){
+ $this->selectedBase = $dep_id[key($dep_id)];
+ }
}
diff --git a/plugins/admin/systems/class_baseSelectDialog.inc b/plugins/admin/systems/class_baseSelectDialog.inc
index ecdd4da28f93a9272797c8e9927006f34a98d3c2..04275e0def0d49938c66d7ce6adb17e2409ec7ff 100644 (file)
function baseSelectDialog (&$config,$parent,$onlyAllowThisBases = array())
{
- echo "Need to pass module via parameter!<br>";
$module= "all";
MultiSelectWindow::MultiSelectWindow($config, "BASEselectWindow", $module);