Issue #3238915: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS
Compare changes
Files
2-
Issue #2958241 by fjgarlin, thetwentyseven, Wim Leers, joachim, immaculatexavier, fulgent, larowlan, lastlink, andypost, nnevill: Impossible to reply to comments: commented entity considered unreferencable because CommentSelection::entityQueryAlter() joins on {node_field_data} table
@@ -2,6 +2,7 @@
@@ -2,6 +2,7 @@
@@ -76,19 +77,75 @@ public function entityQueryAlter(SelectInterface $query) {
@@ -76,19 +77,75 @@ public function entityQueryAlter(SelectInterface $query) {
$query->innerJoin($data_table, NULL, "[base_table].[cid] = [$data_table].[cid] AND [$data_table].[default_langcode] = 1");
$node_alias = $query->innerJoin('node_field_data', 'n', "[%alias].[nid] = [$data_table].[entity_id] AND [$data_table].[entity_type] = 'node'");
if (!$this->currentUser->hasPermission('bypass node access') && !$this->moduleHandler->hasImplementations('node_grants')) {