From: Laury GvR Date: Mon, 16 Jan 2017 13:54:39 +0000 (-0500) Subject: Fix for the pagination X-Git-Tag: v1.0.19^2~9 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=fff29868dd969d6ec5adee0b75c9fda66d30d2d0;p=WP-Plugins%2Fglm-member-db-contacts.git Fix for the pagination The list query wasn't making use of the new start position when 'next' or 'previous' page was selected. --- 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.