Code

Added debug handling for all gosa_si actions.
[gosa.git] / gosa-core / include / class_MultiSelectWindow.inc
index 123b88fe002a685979a556978f38ca4f604ad3b6..a98004cedfd15a298497412d85422d838906a140 100644 (file)
@@ -118,8 +118,8 @@ class MultiSelectWindow{
   {
     if(!empty($this->string_ListDropDown)){
       $mid = new LayersMenu(6, 7, 2, 1);
-      $mid->setImgwww("./images/");
-      $mid->setIcondir("./images/");
+      $mid->setImgwww("./images/layer_menu/");
+      $mid->setIcondir("./images/layer_menu/");
       $mid->setDirroot("../include/utils/layer-menu/");
       $mid->setHorizontalMenuTpl("../ihtml/".get_template_path("",FALSE).'GOsa_MultiSelectHeader.ihtml');
       $mid->setSubMenuTpl("../ihtml/".get_template_path("",FALSE).'GOsa_MultiSelectHeaderSubEntry.ihtml');
@@ -374,7 +374,7 @@ class MultiSelectWindow{
                $divlist->SetEntriesPerPage(0); // 0 for scrollable list
 
     /* Display list footer with summary of all listed entries */
-    if(isset($this->config->data['MAIN']['LIST_SUMMARY']) && preg_match("/true/i",$this->config->data['MAIN']['LIST_SUMMARY'])){
+    if ($this->config->get_cfg_value("listSummary") == "true"){
       $divlist->SetFooter($this->get_List_Bottom_Info());
     }
   
@@ -508,7 +508,7 @@ class MultiSelectWindow{
     /* Ensure that we do not handle posts for other dialogs 
      */
     if((isset($_POST['POST_ID']) && $_POST['POST_ID'] != $this->post_id) || 
-       (isset($_GET['POST_ID']) && $_GET['POST_ID'] != $this->post_id)){
+       (isset($_GET['post_id']) && $_GET['post_id'] != $this->post_id)){
       return;
     }
 
@@ -546,6 +546,7 @@ class MultiSelectWindow{
     if(isset($_GET['act'])&& ($_GET['act'] == "dep_open")){
       $s_entry = $_GET['dep_id'];
       if (!isset($this->departments[$s_entry])){
+
         msg_dialog::display(_("LDAP error"), sprintf(_("Inconsistent DN encoding detected: '%s'"), LDAP::fix($s_entry)), ERROR_DIALOG);
       } else {
         $this->selectedBase = $this->departments[$s_entry]['dn'];
@@ -642,6 +643,9 @@ class MultiSelectWindow{
                                }
                        }
                }
+
+    /* Save currenlty selected base in session */
+    session::set("CurrentMainBase",$this->selectedBase);
        }