From 516c4f556eb08d407aa51cfa9841aa64d46d40ff Mon Sep 17 00:00:00 2001 From: Damien <damien.burel@maarch.org> Date: Tue, 16 Apr 2019 12:52:58 +0200 Subject: [PATCH] FIX Maileva foreign country --- src/app/action/controllers/PreProcessActionController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/action/controllers/PreProcessActionController.php b/src/app/action/controllers/PreProcessActionController.php index 144c8683276..3ab23b09af3 100644 --- a/src/app/action/controllers/PreProcessActionController.php +++ b/src/app/action/controllers/PreProcessActionController.php @@ -556,7 +556,7 @@ class PreProcessActionController unset($aAttachments[$key]); break; } - if (!empty($contact['address_country']) && strtoupper(trim($contact['address_country'])) != 'FRANCE') { + if (!empty($contact[0]['address_country']) && strtoupper(trim($contact[0]['address_country'])) != 'FRANCE') { $resInfo = ResModel::getExtById(['select' => ['alt_identifier'], 'resId' => $valueResId]); $canNotSend[] = ['resId' => $valueResId, 'chrono' => $resInfo['alt_identifier'], 'reason' => 'noFranceContact', 'attachmentIdentifier' => $attachment['identifier']]; unset($aAttachments[$key]); -- GitLab