Skip to content
Snippets Groups Projects
Commit c09fa6e0 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix empty keys are not allowed into select

parent c8d232e0
No related branches found
No related tags found
No related merge requests found
......@@ -750,6 +750,7 @@ class ExtraFields
$out.='<option value="0">&nbsp;</option>';
foreach ($param['options'] as $key => $val)
{
if ($key == '') continue;
list($val, $parent) = explode('|', $val);
$out.='<option value="'.$key.'"';
$out.= ($value==$key?' selected':'');
......@@ -1160,7 +1161,6 @@ class ExtraFields
$list=$this->attribute_list[$key];
$showsize=0;
if ($type == 'date')
{
$showsize=10;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment