From 60f5c77685e509f0e71d2e5a6886238fe0dfbacc Mon Sep 17 00:00:00 2001 From: dima-uryvskiy Date: Wed, 2 Dec 2020 20:51:46 +0300 Subject: [PATCH] Update WC_Retailcrm_Response --- src/include/components/class-wc-retailcrm-paginated-request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/components/class-wc-retailcrm-paginated-request.php b/src/include/components/class-wc-retailcrm-paginated-request.php index e190de9..bbbfdb2 100644 --- a/src/include/components/class-wc-retailcrm-paginated-request.php +++ b/src/include/components/class-wc-retailcrm-paginated-request.php @@ -128,7 +128,7 @@ class WC_Retailcrm_Paginated_Request ); if ($response instanceof WC_Retailcrm_Response && $response->offsetExists($this->dataKey)) { - $this->data = array_merge($response[$this->dataKey]); + $this->data = array_merge($this->data, $response[$this->dataKey]); $page = $response['pagination']['currentPage'] + 1; }