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:
b5692f6
)
List for categories should have only active events.
author
Steve Sutton
<steve@gaslightmedia.com>
Wed, 9 Nov 2016 20:40:29 +0000
(15:40 -0500)
committer
Steve Sutton
<steve@gaslightmedia.com>
Wed, 9 Nov 2016 20:40:29 +0000
(15:40 -0500)
Restrict the category list for event search to categories that are in
active events.
classes/data/dataCategories.php
patch
|
blob
|
history
diff --git
a/classes/data/dataCategories.php
b/classes/data/dataCategories.php
index
bd74e77
..
eabf097
100644
(file)
--- a/
classes/data/dataCategories.php
+++ b/
classes/data/dataCategories.php
@@
-351,6
+351,11
@@
class GlmDataEventsCategories extends GlmDataAbstract
WHERE active
AND start_time >= NOW()
)
+ AND event IN (
+ SELECT id
+ FROM " . GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "events
+ WHERE status = 10
+ )
) ";
$order = "T.name";
return $this->getList($where, $order);