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

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)
{