From: Anthony Talarico Date: Thu, 8 Feb 2018 14:12:33 +0000 (-0500) Subject: removing the limit for the events and just getting all events by category X-Git-Tag: v1.6.77^2~13 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d39c2e92de253e887d99745c4a24bfac14e94d5b;p=WP-Plugins%2Fglm-member-db-events.git removing the limit for the events and just getting all events by category using javascript temporarily to limit the number of eventes for the ajax widget, this will need to be fixed for future projects --- diff --git a/models/admin/ajax/eventsCalMonthAJAX.php b/models/admin/ajax/eventsCalMonthAJAX.php index a1d35c7..ef937ab 100644 --- a/models/admin/ajax/eventsCalMonthAJAX.php +++ b/models/admin/ajax/eventsCalMonthAJAX.php @@ -168,7 +168,7 @@ class GlmMembersAdmin_ajax_eventsCalMonthAJAX extends GlmDataEventsTimes } else if( isset( $_REQUEST['all_events'] ) ){ - $this->dateRangeTimes = "start_time >= CURDATE() AND end_time <= CURDATE() + INTERVAL 3 DAY ORDER BY start_time"; + $this->dateRangeTimes = "end_time >= CURDATE() ORDER BY start_time"; $events = $this->getModelTimesData(); // $sql = "SELECT * FROM " . GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "times WHERE end_time >= CURDATE() GROUP BY event ORDER BY start_time LIMIT 3;";