From 636b43e5a092084cbe0c84fdeb639f3a87471e6f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 4 Apr 2010 13:20:10 +0000 Subject: - Patch #743804 by gpk: comment_enable() should use node created time not changed time for last_comment_timestamp(). --- modules/comment/comment.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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'); -- cgit v1.2.3