mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
minor fix
This commit is contained in:
parent
36f12d5432
commit
e90497df61
@ -774,6 +774,7 @@ function html_print_select(
|
||||
$select2_multiple_enable_all=false,
|
||||
$form='',
|
||||
$order=false,
|
||||
$custom_id=null
|
||||
) {
|
||||
$output = "\n";
|
||||
|
||||
@ -789,6 +790,10 @@ function html_print_select(
|
||||
|
||||
$id = preg_replace('/[^a-z0-9\:\;\-\_]/i', '', $name.($idcounter[$name] ? $idcounter[$name] : ''));
|
||||
|
||||
if ($custom_id !== null) {
|
||||
$id = $custom_id;
|
||||
}
|
||||
|
||||
$attributes = '';
|
||||
if (!empty($script)) {
|
||||
$attributes .= ' onchange="'.$script.'"';
|
||||
|
Loading…
x
Reference in New Issue
Block a user