Code

Udpated MultiselectWindow
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Sep 2007 11:13:27 +0000 (11:13 +0000)
committerhickert <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
plugins/admin/systems/class_baseSelectDialog.inc

index 9d3b10008d59553723e9353114984316a412634e..b7d4bb9166f0147f76dd2962075f9132019acf70 100644 (file)
@@ -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)];
+      }
     }
 
 
index ecdd4da28f93a9272797c8e9927006f34a98d3c2..04275e0def0d49938c66d7ce6adb17e2409ec7ff 100644 (file)
@@ -12,7 +12,6 @@ class baseSelectDialog extends MultiSelectWindow
  
   function baseSelectDialog (&$config,$parent,$onlyAllowThisBases = array())
   {
-    echo "Need to pass module via parameter!<br>";
     $module= "all";
     MultiSelectWindow::MultiSelectWindow($config, "BASEselectWindow", $module);