From ac793f9f39d761698e237b0d47bfc50ee1b3051b Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Mon, 2 Dec 2024 17:17:19 +0100
Subject: [PATCH] bootstrap-select: add data-size="15"

---
 public_html/deployment/classes/formgen.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public_html/deployment/classes/formgen.class.php b/public_html/deployment/classes/formgen.class.php
index 5038d952..0f6782c5 100644
--- a/public_html/deployment/classes/formgen.class.php
+++ b/public_html/deployment/classes/formgen.class.php
@@ -254,7 +254,7 @@ class formgen
                 $elementData['class'] .= " form-control" . (isset($this->aFeatures['bootstrap-select']) && $this->aFeatures['bootstrap-select'] ? " selectpicker" : "");
                 $sFormElement .= '<div class="' . $sDivClass . '">' . "\n" . '<select id="' . $sId . '" '
                     . $this->_addHtmlAtrributes(explode(",", "$sDefaultAttributes,name,onchange"), $elementData)
-                    . (isset($this->aFeatures['bootstrap-select']) && $this->aFeatures['bootstrap-select'] ? ' data-live-search="true"' : '');
+                    . (isset($this->aFeatures['bootstrap-select']) && $this->aFeatures['bootstrap-select'] ? ' data-live-search="true" data-size="15"' : '');
                 $sFormElement .= ">\n";
                 foreach ($elementData["options"] as $idOption => $aOptionData) {
                     $s = preg_replace('/\W/iu', '', $sId . $idOption);
-- 
GitLab