Merge branch 'ent-7994-carrefour-anadir-filtro-en-la-vista-de-custom-field-view-metaconsola' into 'develop'

added search capacity to multiple select

See merge request artica/pandorafms!4459
This commit is contained in:
Daniel Rodriguez 2021-11-17 15:14:31 +00:00
commit 3fc8e0cf7f
1 changed files with 4 additions and 2 deletions

View File

@ -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 .= '<script src="';
$output .= ui_get_full_url(