[Qual] Fixed HTML multiple attribute
Dolibarr uses HTML 4.01 or HTML5 doctypes. The multiple attribute is boolean.
This commit is contained in:
parent
ce60ae0fcc
commit
9b56427858
@ -4539,7 +4539,7 @@ class Form
|
|||||||
// Try also magic suggest
|
// Try also magic suggest
|
||||||
|
|
||||||
// Add data-role="none" to disable jmobile decoration
|
// Add data-role="none" to disable jmobile decoration
|
||||||
$out = '<select data-role="none" id="'.$htmlname.'" class="multiselect'.($morecss?' '.$morecss:'').'" multiple="multiple" name="'.$htmlname.'[]"'.($moreattrib?' '.$moreattrib:'').($width?' style="width: '.(preg_match('/%/',$width)?$width:$width.'px').'"':'').'>'."\n";
|
$out = '<select data-role="none" id="'.$htmlname.'" class="multiselect'.($morecss?' '.$morecss:'').'" multiple name="'.$htmlname.'[]"'.($moreattrib?' '.$moreattrib:'').($width?' style="width: '.(preg_match('/%/',$width)?$width:$width.'px').'"':'').'>'."\n";
|
||||||
if (is_array($array) && ! empty($array))
|
if (is_array($array) && ! empty($array))
|
||||||
{
|
{
|
||||||
if ($value_as_key) $array=array_combine($array, $array);
|
if ($value_as_key) $array=array_combine($array, $array);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user