Merge branch 'hotfix' into develop

This commit is contained in:
Jérémy Munsch 2022-08-31 10:28:25 +02:00
commit febae0f282
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -344,14 +344,14 @@ class ArcadiaController extends Controller
if ($type === 'game') {
$key = array_search('code_on_pack', array_column($fields->orderLine, 'fieldName'));
if ($key) {
if ($key !== false) {
$orderLine->appendChild(
$dom->createElement('Code_on_Pack')
)->appendChild($dom->createCDATASection($fields->orderLine[$key]->fieldValue));
}
$key = array_search('code_unique', array_column($fields->orderLine, 'fieldName'));
if ($key) {
if ($key !== false) {
$orderLine->appendChild(
$dom->createElement('Code_Unique')
)->appendChild($dom->createCDATASection($fields->orderLine[$key]->fieldValue));