Commit 33e04ad4 authored by merlinofchaos's avatar merlinofchaos

#117365: Comment: Last Changed Time wasn't ensuring node_comment_statistics is in the query.

parent 1530d02b
......@@ -7,6 +7,7 @@ Views 5.x-dev
o #137971: Fix .install file for PGSQL. Again. Still.
o #136330: Fix problems with views_cache table not existing when updating from 1.5 -> 1.6-beta.
o #138510: Multi-select for taxonomy had disappeared.
o #117365: Comment: Last Changed Time wasn't ensuring node_comment_statistics is in the query.
Views 5.x-beta3
Bugs fixed:
......
......@@ -178,6 +178,7 @@ function comment_views_tables() {
}
function views_query_handler_field_last_changed($field, $fieldinfo, &$query) {
$query->ensure_table('node_comment_statistics');
$query->add_field('GREATEST(node.changed, node_comment_statistics.last_comment_timestamp)', '', $field['tablename'] . '_last_changed');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment