From: hickert Date: Wed, 12 Sep 2007 11:13:27 +0000 (+0000) Subject: Udpated MultiselectWindow X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=78b21ee17b6d3f16b50b902d302ecaba77db7cc8;p=gosa.git Udpated MultiselectWindow git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7281 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index 9d3b10008..b7d4bb916 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -81,7 +81,7 @@ class MultiSelectWindow{ $this->SaveButtonString = _("Save"); $this->CloseButtonString = _("Close"); $this->filterName = $filterName; - + $this->ui = get_userinfo(); $this->selectedBase = $_SESSION['CurrentMainBase']; /* Check default values for SaveAdditionalVars */ @@ -470,7 +470,9 @@ class MultiSelectWindow{ 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 ecdd4da28..04275e0de 100644 --- a/plugins/admin/systems/class_baseSelectDialog.inc +++ b/plugins/admin/systems/class_baseSelectDialog.inc @@ -12,7 +12,6 @@ class baseSelectDialog extends MultiSelectWindow function baseSelectDialog (&$config,$parent,$onlyAllowThisBases = array()) { - echo "Need to pass module via parameter!
"; $module= "all"; MultiSelectWindow::MultiSelectWindow($config, "BASEselectWindow", $module);