minor fix

This commit is contained in:
alejandro.campos@artica.es 2023-10-18 20:17:18 +02:00
parent 36f12d5432
commit e90497df61
1 changed files with 5 additions and 0 deletions

View File

@ -774,6 +774,7 @@ function html_print_select(
$select2_multiple_enable_all=false, $select2_multiple_enable_all=false,
$form='', $form='',
$order=false, $order=false,
$custom_id=null
) { ) {
$output = "\n"; $output = "\n";
@ -789,6 +790,10 @@ function html_print_select(
$id = preg_replace('/[^a-z0-9\:\;\-\_]/i', '', $name.($idcounter[$name] ? $idcounter[$name] : '')); $id = preg_replace('/[^a-z0-9\:\;\-\_]/i', '', $name.($idcounter[$name] ? $idcounter[$name] : ''));
if ($custom_id !== null) {
$id = $custom_id;
}
$attributes = ''; $attributes = '';
if (!empty($script)) { if (!empty($script)) {
$attributes .= ' onchange="'.$script.'"'; $attributes .= ' onchange="'.$script.'"';