removing the limit for the events and just getting all events by category
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 8 Feb 2018 14:12:33 +0000 (09:12 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 8 Feb 2018 14:12:33 +0000 (09:12 -0500)
using javascript temporarily to limit the number of eventes for the ajax widget,
this will need to be fixed for future projects

models/admin/ajax/eventsCalMonthAJAX.php

index a1d35c7..ef937ab 100644 (file)
@@ -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;";