From 83b359c798661c1236edb69bef6f8be5186cf249 Mon Sep 17 00:00:00 2001
From: "florian.azizian" <florian.azizian@maarch.org>
Date: Wed, 31 Oct 2018 17:07:29 +0100
Subject: [PATCH] fix res_id in sendDataWS

---
 apps/maarch_entreprise/actions/sendDataWS.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/maarch_entreprise/actions/sendDataWS.php b/apps/maarch_entreprise/actions/sendDataWS.php
index ab968f26a91..5c31dc56487 100644
--- a/apps/maarch_entreprise/actions/sendDataWS.php
+++ b/apps/maarch_entreprise/actions/sendDataWS.php
@@ -14,7 +14,7 @@ function manage_send($aId)
         foreach ($config['rawData'] as $value) {
             $select[] = $value;
         }
-        $document = \Resource\models\ResModel::getOnView(['select' => $select, 'where' => ['res_id = ?'], 'data' => [$aId[0]]]);
+        $document = \Resource\models\ResModel::getOnView(['select' => $select, 'where' => ['res_id = ?'], 'data' => [$resId]]);
 
         \SrcCore\models\CurlModel::exec(['curlCallId' => 'sendData', 'bodyData' => $document[0]]);
 
-- 
GitLab