Update for limit
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 12 Sep 2017 20:02:58 +0000 (16:02 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 12 Sep 2017 20:02:58 +0000 (16:02 -0400)
For the limit if the events are grouped by days then it really needs to
get all of the events and we don't want it to limit in the query. The
limit is done when it sorted the events into the new array.

models/front/events/list.php

index 8876335..13a0b60 100644 (file)
@@ -91,7 +91,7 @@ class GlmMembersFront_events_list extends GlmMembersFront_events_baseAction
             $view = $actionData['request']['template'];
         }
         if ( $limit ) {
-            $action = 'front-page';
+            //$action = 'front-page';
         }
         if ( isset( $actionData['request']['featured'] ) ) {
             $featured = filter_var( $actionData['request']['featured'], FILTER_VALIDATE_BOOLEAN );