Fix for the pagination
authorLaury GvR <laury@gaslightmedia.com>
Mon, 16 Jan 2017 13:54:39 +0000 (08:54 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 16 Jan 2017 13:54:39 +0000 (08:54 -0500)
The list query wasn't making use of the new start position when
'next' or 'previous' page was selected.

models/front/contacts/list.php

index 85d6a16..71f65ac 100644 (file)
@@ -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.