Merge pull request #12438 from atm-gauthier/8.0_invoice_createfromclone

FIX : wrong invoice id for fetchObjetctLinked
This commit is contained in:
Laurent Destailleur 2019-11-16 00:43:18 +01:00 committed by GitHub
commit bb493c6515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -875,7 +875,7 @@ class Facture extends CommonInvoice
}
elseif ($this->type == self::TYPE_SITUATION && !empty($conf->global->INVOICE_USE_SITUATION))
{
$this->fetchObjectLinked('', '', $facture->id, 'facture');
$this->fetchObjectLinked('', '', $this->id, 'facture');
foreach ($this->linkedObjectsIds as $typeObject => $Tfk_object)
{