From a11cf8fa756825fa40a9c97ae47fda6a46e2bc5c Mon Sep 17 00:00:00 2001 From: gonzalo Date: Thu, 4 May 2017 16:02:35 -0300 Subject: [PATCH] closes #20 --- Controller/Adminhtml/Lists/Get.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Controller/Adminhtml/Lists/Get.php b/Controller/Adminhtml/Lists/Get.php index 3883a073..040fc43e 100644 --- a/Controller/Adminhtml/Lists/Get.php +++ b/Controller/Adminhtml/Lists/Get.php @@ -18,6 +18,8 @@ class Get extends Action { + const MAX_LISTS = 200; + /** * @var \Ebizmarts\MailChimp\Helper\Data */ @@ -49,7 +51,7 @@ public function execute() $param = $this->getRequest()->getParams(); $apiKey = $param['apikey']; $api = $this->_helper->getApiByApiKey($apiKey); - $lists = $api->lists->getLists(); + $lists = $api->lists->getLists(null,null,null,self::MAX_LISTS); $result = []; foreach($lists['lists'] as $list) { $result[] = ['id'=> $list['id'], 'name'=> $list['name']];