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

Fix empty keys are not allowed into select

parent ce02f05d
Branches
Tags
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