Only add empty select if no multiselect
This commit is contained in:
parent
a2bc46f1c0
commit
097de7b3cd
@ -355,7 +355,10 @@ class FormActions
|
|||||||
|
|
||||||
// Suggest a list with manual events or all auto events
|
// Suggest a list with manual events or all auto events
|
||||||
$arraylist = $caction->liste_array(1, 'code', $excludetype, $onlyautoornot);
|
$arraylist = $caction->liste_array(1, 'code', $excludetype, $onlyautoornot);
|
||||||
array_unshift($arraylist, ' '); // Add empty line at start
|
if (empty($multiselect)) {
|
||||||
|
// Add empty line at start only if no multiselect
|
||||||
|
array_unshift($arraylist, ' ');
|
||||||
|
}
|
||||||
//asort($arraylist);
|
//asort($arraylist);
|
||||||
|
|
||||||
if ($selected == 'manual') $selected = 'AC_OTH';
|
if ($selected == 'manual') $selected = 'AC_OTH';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user