From 6910c78df9e81ade5905bed2dc1cdfa79a5c88cd Mon Sep 17 00:00:00 2001
From: Thomas Steur <tsteur@users.noreply.github.com>
Date: Fri, 8 Sep 2017 16:33:40 +1200
Subject: [PATCH] Make sure to fetch all segments (#12013)

When eg a report or API is rendered and has a filter_limit URL parameter, the filter_limit is applied here and then eg returns only 10 segments instead of say 100.
---
 plugins/SegmentEditor/SegmentList.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugins/SegmentEditor/SegmentList.php b/plugins/SegmentEditor/SegmentList.php
index e7094d4793..79a226aa7b 100644
--- a/plugins/SegmentEditor/SegmentList.php
+++ b/plugins/SegmentEditor/SegmentList.php
@@ -20,6 +20,7 @@ class SegmentList
     {
         $segments = Request::processRequest('API.getSegmentsMetadata', array(
             'idSites' => array($idSite),
+            'filter_limit' => '-1'
         ));
 
         foreach ($segments as $segment) {
-- 
GitLab