From fff29868dd969d6ec5adee0b75c9fda66d30d2d0 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Mon, 16 Jan 2017 08:54:39 -0500 Subject: [PATCH] Fix for the pagination The list query wasn't making use of the new start position when 'next' or 'previous' page was selected. --- models/front/contacts/list.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/models/front/contacts/list.php b/models/front/contacts/list.php index 85d6a16..71f65ac 100644 --- a/models/front/contacts/list.php +++ b/models/front/contacts/list.php @@ -241,7 +241,6 @@ class GlmMembersFront_contacts_list extends GlmDataContacts $namesList = $this->getIdName($where); - $contactsList = $this->getList($where, $order, true, 'id',$start, $limit); // If doing alpha list $alphaList = false; @@ -281,6 +280,9 @@ class GlmMembersFront_contacts_list extends GlmDataContacts } } + + $contactsList = $this->getList($where, $order, true, 'id',$start, $limit); + $list = $contactsList['list']; // If we're not paging, then force $start and $limit to false to data abstract returns everything. -- 2.17.1