From 78bd818a909a10b3c4d8e5fd01cf8f3e76982941 Mon Sep 17 00:00:00 2001
From: Guillaume Heurtier <guillaume.heurtier@maarch.org>
Date: Fri, 4 Sep 2020 16:53:08 +0200
Subject: [PATCH] FEAT #14458 TIME 0:20 fix import contacts with large csv

---
 src/app/contact/controllers/ContactController.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/app/contact/controllers/ContactController.php b/src/app/contact/controllers/ContactController.php
index 1efd9a200c6..d24ab3dae58 100755
--- a/src/app/contact/controllers/ContactController.php
+++ b/src/app/contact/controllers/ContactController.php
@@ -1207,6 +1207,8 @@ class ContactController
             return $response->withStatus(403)->withJson(['errors' => 'Service forbidden']);
         }
 
+        ini_set('memory_limit', -1);
+
         $body = $request->getParsedBody();
         if (!Validator::arrayType()->validate($body['contacts'])) {
             return $response->withStatus(400)->withJson(['errors' => 'Body contacts is empty or not an array']);
-- 
GitLab