Update for getting event with a limit setting.
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 15 Nov 2018 16:19:24 +0000 (11:19 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 15 Nov 2018 16:19:24 +0000 (11:19 -0500)
When limit is set the event query wasn't including the date range.
With the date range set it is now getting the correct events for that
range of dates if a limit is set in the shortcode attribute.

models/front/events/baseAction.php

index 0ce1b5a..ab244e7 100644 (file)
@@ -390,7 +390,7 @@ abstract class GlmMembersFront_events_baseAction extends GlmDataEvents
                         SELECT distinct event
                           FROM " . GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "times AS ET
                          WHERE active
-                           AND start_time >= CURDATE()
+                           AND " . $this->dateRange . "
                     )
                 ";
             $order  = "T.id";