forked from Wavyzz/dolibarr
FIX when 2 extra fields are mandatory in 2 different entities
This commit is contained in:
@@ -796,7 +796,7 @@ class ExtraFields
|
||||
{
|
||||
if ($tab->entity != 0 && $tab->entity != $conf->entity)
|
||||
{
|
||||
// This field is not in current entity. We discard but before we save it into the array of mandatory fields if it is a mandatory field
|
||||
// This field is not in current entity. We discard but before we save it into the array of mandatory fields if it is a mandatory field without default value
|
||||
if ($tab->fieldrequired && is_null($tab->fielddefault))
|
||||
{
|
||||
$this->attributes[$tab->elementtype]['mandatoryfieldsofotherentities'][$tab->name]=$tab->type;
|
||||
|
||||
Reference in New Issue
Block a user