Fix : bad test field when checking extrafield is required
This commit is contained in:
parent
371b40cc76
commit
473541f19d
@ -904,8 +904,7 @@ class ExtraFields
|
||||
foreach ($extralabels as $key => $value)
|
||||
{
|
||||
$key_type = $this->attribute_type[$key];
|
||||
|
||||
if($this->attribute_required[$key] && !GETPOST($value))
|
||||
if($this->attribute_required[$key] && !GETPOST("options_$key",2))
|
||||
{
|
||||
$nofillrequired++;
|
||||
$error_field_required[] = $value;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user