projects
/
WP-Plugins
/
glm-member-db.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
566adbb
)
Added parent_id to the memberinfo category data
author
Laury GvR
<laury@gaslightmedia.com>
Thu, 13 Apr 2017 14:57:11 +0000
(10:57 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Thu, 13 Apr 2017 14:57:11 +0000
(10:57 -0400)
classes/data/dataMemberInfo.php
patch
|
blob
|
history
diff --git
a/classes/data/dataMemberInfo.php
b/classes/data/dataMemberInfo.php
index
32dfb0b
..
a889b3d
100644
(file)
--- a/
classes/data/dataMemberInfo.php
+++ b/
classes/data/dataMemberInfo.php
@@
-584,7
+584,15
@@
class GlmDataMemberInfo extends GlmDataAbstract
FROM ".GLM_MEMBERS_PLUGIN_DB_PREFIX. "categories
WHERE id = C.parent
), ''
- ) AS parent_name
+ ) AS parent_name,
+ COALESCE (
+ (
+ SELECT id
+ FROM ".GLM_MEMBERS_PLUGIN_DB_PREFIX."categories
+ WHERE id = C.parent
+ ), ''
+ ) AS parent_id
+
FROM ".GLM_MEMBERS_PLUGIN_DB_PREFIX. "categories AS C,
".GLM_MEMBERS_PLUGIN_DB_PREFIX. "category_member_info AS CMI
WHERE C.id = CMI.category