Merge pull request #13659 from adrienjacob/patch-1

[BUGFIX] Allow update of extra fields
This commit is contained in:
Laurent Destailleur 2020-04-20 14:41:21 +02:00 committed by GitHub
commit dd67973171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -977,6 +977,15 @@ class FactureFournisseur extends CommonInvoice
}
}
if (! $error && empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && is_array($this->array_options) && count($this->array_options)>0)
{
$result=$this->insertExtraFields();
if ($result < 0)
{
$error++;
}
}
if (!$error)
{
if (!$notrigger)