Only add empty select if no multiselect

This commit is contained in:
Frédéric FRANCE 2020-05-11 18:34:54 +02:00 committed by GitHub
parent a2bc46f1c0
commit 097de7b3cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';