Only add empty select if no multiselect
This commit is contained in:
parent
a2bc46f1c0
commit
097de7b3cd
@ -353,10 +353,13 @@ class FormActions
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
|
||||||
$caction = new CActionComm($this->db);
|
$caction = new CActionComm($this->db);
|
||||||
|
|
||||||
// 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)) {
|
||||||
//asort($arraylist);
|
// Add empty line at start only if no multiselect
|
||||||
|
array_unshift($arraylist, ' ');
|
||||||
|
}
|
||||||
|
//asort($arraylist);
|
||||||
|
|
||||||
if ($selected == 'manual') $selected = 'AC_OTH';
|
if ($selected == 'manual') $selected = 'AC_OTH';
|
||||||
if ($selected == 'auto') $selected = 'AC_OTH_AUTO';
|
if ($selected == 'auto') $selected = 'AC_OTH_AUTO';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user