From a5df2a47515374dd031eb99f28bd5caf8281b3ba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Bernigaud?= <come.bernigaud@opensides.be>
Date: Mon, 3 Mar 2014 16:25:17 +0100
Subject: [PATCH] Fixes #3041 divSelectBox should take an html id in its
 constructor

---
 include/class_divSelectBox.inc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/class_divSelectBox.inc b/include/class_divSelectBox.inc
index 378005ae7..6fb6cbc5c 100644
--- a/include/class_divSelectBox.inc
+++ b/include/class_divSelectBox.inc
@@ -36,17 +36,20 @@ class divSelectBox
   var $summary;
   var $cols;
 
+  private $id;
+
   // Members for page managment
   var $height = '200px';
 
   /*!
    * \brief Default divSelectBox constructor
    */
-  function __construct()
+  function __construct($id)
   {
     $this->s_summary  = '';
     $this->a_entries  = array();
     $this->cols       = 0;
+    $this->id         = $id;
   }
 
   /*!
@@ -93,6 +96,7 @@ class divSelectBox
     $s_return .= '<div style="overflow:auto; width:100%; height:100%;">'."\n";
     $s_return .= '<table '.
                     'class="listingTable" '.
+                    'id="'.$this->id.'" '.
                     'style="overflow:scroll; '.
                       'height:98%; '.
                       'width:100%; '.
-- 
GitLab