Merge pull request #21290 from badre-agtaib/scru7

wrong access in array of ids
This commit is contained in:
Laurent Destailleur 2022-06-17 14:13:18 +02:00 committed by GitHub
commit 24ee652c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1058,7 +1058,7 @@ class Contrat extends CommonObject
if (count($exp->linkedObjectsIds['commande']) > 0) {
foreach ($exp->linkedObjectsIds['commande'] as $key => $value) {
$originforcontact = 'commande';
$originidforcontact = $value->id;
$originidforcontact = $value;
break; // We take first one
}
}