diff --git a/core/modules/comment/src/Plugin/views/argument/UserUid.php b/core/modules/comment/src/Plugin/views/argument/UserUid.php index 77ed0cc..b20a116 100644 --- a/core/modules/comment/src/Plugin/views/argument/UserUid.php +++ b/core/modules/comment/src/Plugin/views/argument/UserUid.php @@ -86,8 +86,8 @@ public function query($group_by = FALSE) { $this->ensureMyTable(); // Use the table definition to correctly add this user ID condition. - if ($this->table != 'comment') { - $subselect = $this->database->select('comment', 'c'); + if ($this->table != 'comment_field_data') { + $subselect = $this->database->select('comment_field_data', 'c'); $subselect->addField('c', 'cid'); $subselect->condition('c.uid', $this->argument); diff --git a/core/modules/comment/src/Plugin/views/filter/UserUid.php b/core/modules/comment/src/Plugin/views/filter/UserUid.php index ebef422..16d4fb0 100644 --- a/core/modules/comment/src/Plugin/views/filter/UserUid.php +++ b/core/modules/comment/src/Plugin/views/filter/UserUid.php @@ -22,7 +22,7 @@ class UserUid extends FilterPluginBase { public function query() { $this->ensureMyTable(); - $subselect = db_select('comment', 'c'); + $subselect = db_select('comment_field_data', 'c'); $subselect->addField('c', 'cid'); $subselect->condition('c.uid', $this->value, $this->operator); diff --git a/core/modules/content_translation/tests/modules/content_translation_test_views/test_views/views.view.test_entity_translations_link.yml b/core/modules/content_translation/tests/modules/content_translation_test_views/test_views/views.view.test_entity_translations_link.yml index 6a0515d..143d1f0 100644 --- a/core/modules/content_translation/tests/modules/content_translation_test_views/test_views/views.view.test_entity_translations_link.yml +++ b/core/modules/content_translation/tests/modules/content_translation_test_views/test_views/views.view.test_entity_translations_link.yml @@ -9,7 +9,7 @@ label: People module: views description: '' tag: '' -base_table: users +base_table: users_field_data base_field: uid core: 8.x display: @@ -75,7 +75,7 @@ display: filters: uid_raw: id: uid_raw - table: users + table: users_field_data field: uid_raw operator: '!=' value: diff --git a/core/modules/node/src/NodeViewsData.php b/core/modules/node/src/NodeViewsData.php index 95897ea..5d77aac 100644 --- a/core/modules/node/src/NodeViewsData.php +++ b/core/modules/node/src/NodeViewsData.php @@ -291,10 +291,10 @@ public function getViewsData() { $data['node_field_revision']['langcode']['help'] = t('The language the original content is in.'); $data['node_field_revision']['langcode']['field']['id'] = 'node_language'; - $data['node_field_revision']['revision_log']['field']['id'] = 'xss'; + $data['node_revision']['revision_log']['field']['id'] = 'xss'; - $data['node_field_revision']['revision_uid']['help'] = t('Relate a content revision to the user who created the revision.'); - $data['node_field_revision']['revision_uid']['relationship']['label'] = t('revision user'); + $data['node_revision']['revision_uid']['help'] = t('Relate a content revision to the user who created the revision.'); + $data['node_revision']['revision_uid']['relationship']['label'] = t('revision user'); $data['node_field_revision']['table']['wizard_id'] = 'node_field_revision'; diff --git a/core/modules/statistics/tests/modules/statistics_test_views/test_views/views.view.test_statistics_integration.yml b/core/modules/statistics/tests/modules/statistics_test_views/test_views/views.view.test_statistics_integration.yml index d455196..be29657 100644 --- a/core/modules/statistics/tests/modules/statistics_test_views/test_views/views.view.test_statistics_integration.yml +++ b/core/modules/statistics/tests/modules/statistics_test_views/test_views/views.view.test_statistics_integration.yml @@ -9,7 +9,7 @@ label: 'Test statistics integration' module: views description: '' tag: '' -base_table: node +base_table: node_field_data base_field: nid core: 8.x display: diff --git a/core/modules/taxonomy/src/TermViewsData.php b/core/modules/taxonomy/src/TermViewsData.php index 5ebdab9..b2a14fe 100644 --- a/core/modules/taxonomy/src/TermViewsData.php +++ b/core/modules/taxonomy/src/TermViewsData.php @@ -64,7 +64,7 @@ public function getViewsData() { 'outer field' => 'taxonomy_term_field_data.tid', 'argument table' => 'taxonomy_term_field_data', 'argument field' => 'tid', - 'base' => 'node', + 'base' => 'node_field_data', 'field' => 'nid', 'relationship' => 'node:term_node_tid' ), diff --git a/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_field_filters.yml b/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_field_filters.yml index 8787f42..ccde243 100644 --- a/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_field_filters.yml +++ b/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_field_filters.yml @@ -9,7 +9,7 @@ label: 'Test field filters' module: views description: '' tag: '' -base_table: taxonomy_term_data +base_table: taxonomy_term_field_data base_field: tid core: 8.x display: diff --git a/core/modules/user/src/UserViewsData.php b/core/modules/user/src/UserViewsData.php index 4736301..66bf6c7 100644 --- a/core/modules/user/src/UserViewsData.php +++ b/core/modules/user/src/UserViewsData.php @@ -222,8 +222,8 @@ public function getViewsData() { ), ); - unset($data['users_field_data']['signature']); - unset($data['users_field_data']['signature_format']); + unset($data['users']['signature']); + unset($data['users']['signature_format']); if (\Drupal::moduleHandler()->moduleExists('filter')) { $data['users_field_data']['signature'] = array( diff --git a/core/modules/views/src/Tests/Handler/HandlerAliasTest.php b/core/modules/views/src/Tests/Handler/HandlerAliasTest.php index 9f1b329..10f65b3 100644 --- a/core/modules/views/src/Tests/Handler/HandlerAliasTest.php +++ b/core/modules/views/src/Tests/Handler/HandlerAliasTest.php @@ -82,7 +82,7 @@ public function testPluginAliases() { $this->assertIdentical($filter->definition['real field'], 'uid'); $this->assertIdentical($filter->field, 'uid_raw'); - $this->assertIdentical($filter->table, 'users'); + $this->assertIdentical($filter->table, 'users_field_data'); $this->assertIdentical($filter->realField, 'uid'); } diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_alias.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_alias.yml index 092ca13..9984358 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_alias.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_alias.yml @@ -78,7 +78,7 @@ display: is_grouped: false operator: '>' relationship: none - table: users + table: users_field_data value: max: '' min: ''