diff --git a/core/modules/comment/config/schema/comment.views.schema.yml b/core/modules/comment/config/schema/comment.views.schema.yml index a46a004..2f93038 100644 --- a/core/modules/comment/config/schema/comment.views.schema.yml +++ b/core/modules/comment/config/schema/comment.views.schema.yml @@ -57,7 +57,7 @@ views.filter.node_comment: label: 'Comment node status' views.filter.comment_ces_last_updated: - type: views.filter.date + type: views.filter_value.date label: 'Newer of last comment / node updated' views.filter.comment_user_uid: diff --git a/core/modules/comment/src/Plugin/views/filter/StatisticsLastUpdated.php b/core/modules/comment/src/Plugin/views/filter/StatisticsLastUpdated.php index 046edf4..245b21b 100644 --- a/core/modules/comment/src/Plugin/views/filter/StatisticsLastUpdated.php +++ b/core/modules/comment/src/Plugin/views/filter/StatisticsLastUpdated.php @@ -15,7 +15,7 @@ class StatisticsLastUpdated extends Date { public function query() { $this->ensureMyTable(); - $this->node_table = $this->query->ensureTable('node', $this->relationship); + $this->node_table = $this->query->ensureTable('node_field_data', $this->relationship); $field = "GREATEST(" . $this->node_table . ".changed, " . $this->tableAlias . ".last_comment_timestamp)"; diff --git a/core/modules/comment/src/Plugin/views/sort/StatisticsLastUpdated.php b/core/modules/comment/src/Plugin/views/sort/StatisticsLastUpdated.php index 0f9c055..3ef5e97 100644 --- a/core/modules/comment/src/Plugin/views/sort/StatisticsLastUpdated.php +++ b/core/modules/comment/src/Plugin/views/sort/StatisticsLastUpdated.php @@ -15,7 +15,7 @@ class StatisticsLastUpdated extends Date { public function query() { $this->ensureMyTable(); - $this->node_table = $this->query->ensureTable('node', $this->relationship); + $this->node_table = $this->query->ensureTable('node_field_data', $this->relationship); $this->field_alias = $this->query->addOrderBy(NULL, "GREATEST(" . $this->node_table . ".changed, " . $this->tableAlias . ".last_comment_timestamp)", $this->options['order'], $this->tableAlias . '_' . $this->field); }