projects
/
project/drupal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d37c49d
)
- Patch #1431452 by larowlan: 'status' in where clause is ambiguous.
author
Dries
Mon, 13 Feb 2012 18:57:23 +0000 (13:57 -0500)
committer
Dries
Mon, 13 Feb 2012 18:57:23 +0000 (13:57 -0500)
core/modules/forum/forum.module
patch
|
blob
|
blame
|
history
diff --git
a/core/modules/forum/forum.module
b/core/modules/forum/forum.module
index
b334c42
..
6566539
100644
(file)
--- a/
core/modules/forum/forum.module
+++ b/
core/modules/forum/forum.module
@@
-779,7
+779,7
@@
function forum_forum_load($tid = NULL) {
$query->addExpression('SUM(ncs.comment_count)', 'comment_count');
$counts = $query
->fields('f', array('tid'))
- ->condition('status', 1)
+ ->condition('n.status', 1)
->groupBy('tid')
->addTag('node_access')
->execute()