minor fix
This commit is contained in:
parent
36f12d5432
commit
e90497df61
|
@ -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.'"';
|
||||||
|
|
Loading…
Reference in New Issue