[BUGFIX] Allow update of extra fields

This is to make supplier invoices consistent with other similar classes
This commit is contained in:
Adrien Jacob 2020-04-20 14:12:08 +02:00 committed by Laurent Destailleur
parent f546103c01
commit 91fbccb594

View File

@ -976,6 +976,15 @@ class FactureFournisseur extends CommonInvoice
$this->errors[] = "Error ".$this->db->lasterror();
}
}
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)
{