From 21c1bacc0e40d6e564259fa1564fdefea1e704ab Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Thu, 7 Oct 2021 17:12:00 +0200 Subject: [PATCH] added search capacity to multiple select --- pandora_console/include/functions_html.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index bcf6a403a7..3852b9b609 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -728,7 +728,8 @@ function html_print_select( $simple_multiple_options=false, $required=false, $truncate_size=false, - $select2_enable=true + $select2_enable=true, + $multiple_select2=false ) { $output = "\n"; @@ -900,7 +901,8 @@ function html_print_select( $select2 = 'select2_dark.min'; } - if ($multiple === false && $select2_enable === true) { + // Note that multiple_select2 is introduced as a workaround to overcome the pointless limitation of preventing "multiple" select inputs from using select2 library without affecting the existing calls to this function. + if ($multiple === false && $select2_enable === true || $multiple_select2 === true) { if (is_ajax()) { $output .= '