summaryrefslogtreecommitdiff
path: root/modules/comment/comment.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-04 13:20:10 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-04 13:20:10 +0000
commit636b43e5a092084cbe0c84fdeb639f3a87471e6f (patch)
treea4803d4d097892aa7e1d7044244c68c0b2b31ffc /modules/comment/comment.install
parente7d18bc0b142b77f18540e35a5ae49aec939d67c (diff)
downloadbrdo-636b43e5a092084cbe0c84fdeb639f3a87471e6f.tar.gz
brdo-636b43e5a092084cbe0c84fdeb639f3a87471e6f.tar.bz2
- Patch #743804 by gpk: comment_enable() should use node created time not changed time for last_comment_timestamp().
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r--modules/comment/comment.install2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install
index ad3ede220..8e0f345f3 100644
--- a/modules/comment/comment.install
+++ b/modules/comment/comment.install
@@ -36,7 +36,7 @@ function comment_enable() {
// Insert records into the node_comment_statistics for nodes that are missing.
$query = db_select('node', 'n');
$query->leftJoin('node_comment_statistics', 'ncs', 'ncs.nid = n.nid');
- $query->addField('n', 'changed', 'last_comment_timestamp');
+ $query->addField('n', 'created', 'last_comment_timestamp');
$query->addField('n', 'uid', 'last_comment_uid');
$query->addField('n', 'nid');
$query->addExpression('0', 'comment_count');