projects
/
WP-Plugins
/
glm-member-db-events.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af69f3f
)
Update for getting event with a limit setting.
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 15 Nov 2018 16:19:24 +0000
(11:19 -0500)
committer
Steve 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
patch
|
blob
|
history
diff --git
a/models/front/events/baseAction.php
b/models/front/events/baseAction.php
index
0ce1b5a
..
ab244e7
100644
(file)
--- a/
models/front/events/baseAction.php
+++ b/
models/front/events/baseAction.php
@@
-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";