Update facture.class.php

This commit is contained in:
Laurent Destailleur 2017-10-02 01:25:00 +02:00 committed by GitHub
parent 4a63e6b6ec
commit 884fc5d249

View File

@ -486,7 +486,8 @@ class Facture extends CommonInvoice
foreach ($exp->linkedObjectsIds['commande'] as $key => $value)
{
$originforcontact = 'commande';
$originidforcontact = $value;
if (is_object($value)) $originidforcontact = $value->id;
else $originidforcontact = $value;
break; // We take first one
}
}