From d52cf9206e85e4a1827e166775ab5629a428a5d4 Mon Sep 17 00:00:00 2001 From: Thibault CABANES-YZIQUEL Date: Thu, 21 Feb 2019 15:35:47 +0100 Subject: [PATCH] [FEATURE#105983] correction pr Saut de lignes --- src/ChangeRequestManager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ChangeRequestManager.php b/src/ChangeRequestManager.php index 76e2034..fee0a9a 100644 --- a/src/ChangeRequestManager.php +++ b/src/ChangeRequestManager.php @@ -53,10 +53,12 @@ public function findByQueryStringAndAggs($query, $from = 0, $size = 99999, $sort } $response = $this->fireRequest("POST", "/aggs?q={$query}&from={$from}&size={$size}&sort={$sort}", $body); + $response["hits"]["hits"] = array_map( function ($hit) { $change_todos = new ChangeTodos(); $change_todos->fromArray($hit); + return $change_todos; }, $response["hits"]["hits"]