diff --git a/api/etemplate.php b/api/etemplate.php index 65db1d42a9..3567912ca5 100644 --- a/api/etemplate.php +++ b/api/etemplate.php @@ -289,6 +289,12 @@ function send_template() $attrs['multiple'] = 'true'; unset($attrs['expand_multiple_rows']); } + // automatic convert empty_label for multiple=true to a placeholder + if (!empty($attrs['empty_label']) && !empty($attrs['multiple'])) + { + $attrs['placeholder'] = $attrs['empty_label']; + unset($attrs['empty_label']); + } // type attribute need to go in widget type