diff --git a/core/modules/comment/comment.install b/core/modules/comment/comment.install index 48bb5a4..8b171c3 100644 --- a/core/modules/comment/comment.install +++ b/core/modules/comment/comment.install @@ -37,7 +37,8 @@ function comment_uninstall() { */ function comment_enable() { // Insert records into the node_comment_statistics for nodes that are missing. - $query = db_select('node', 'n'); + // TODO Add support for multilingual properties. + $query = db_select('node_property_data', 'n'); $query->leftJoin('node_comment_statistics', 'ncs', 'ncs.nid = n.nid'); $query->addField('n', 'created', 'last_comment_timestamp'); $query->addField('n', 'uid', 'last_comment_uid');