From 2ba37cd31913b76433c8773c5ce7c978c30fb18d Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 20 Mar 2018 14:34:15 +0100 Subject: [PATCH] fix duplicates row for tranlated nodes or terms in admin views --- .../config/sync/views.view.content.yml | 170 ++++++++++++++++++ .../config/sync/views.view.entree_s_.yml | 44 ++++- 2 files changed, 213 insertions(+), 1 deletion(-) diff --git a/sites/default/config/sync/views.view.content.yml b/sites/default/config/sync/views.view.content.yml index c130513c4..77c681277 100644 --- a/sites/default/config/sync/views.view.content.yml +++ b/sites/default/config/sync/views.view.content.yml @@ -64,6 +64,12 @@ display: type: tag query: type: views_query + options: + disable_sql_rewrite: false + distinct: true + replica: false + query_comment: '' + query_tags: { } exposed_form: type: basic options: @@ -1161,6 +1167,47 @@ display: plugin_id: string entity_type: node entity_field: title + langcode: + id: langcode + table: node_field_data + field: langcode + relationship: none + group_type: group + admin_label: '' + operator: in + value: + '***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***' + und: und + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: node + entity_field: langcode + plugin_id: language filter_groups: operator: AND groups: @@ -1992,6 +2039,47 @@ display: hierarchy: true error_message: true plugin_id: taxonomy_index_tid + langcode: + id: langcode + table: node_field_data + field: langcode + relationship: none + group_type: group + admin_label: '' + operator: in + value: + '***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***' + und: und + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: node + entity_field: langcode + plugin_id: language defaults: filters: false filter_groups: false @@ -2948,6 +3036,47 @@ display: plugin_id: string entity_type: node entity_field: title + langcode: + id: langcode + table: node_field_data + field: langcode + relationship: none + group_type: group + admin_label: '' + operator: in + value: + '***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***' + und: und + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: node + entity_field: langcode + plugin_id: language filter_groups: operator: AND groups: @@ -3566,6 +3695,47 @@ display: entity_type: node entity_field: type plugin_id: bundle + langcode: + id: langcode + table: node_field_data + field: langcode + relationship: none + group_type: group + admin_label: '' + operator: in + value: + '***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***' + und: und + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: node + entity_field: langcode + plugin_id: language filter_groups: operator: AND groups: diff --git a/sites/default/config/sync/views.view.entree_s_.yml b/sites/default/config/sync/views.view.entree_s_.yml index cdcc31751..0fca2936f 100644 --- a/sites/default/config/sync/views.view.entree_s_.yml +++ b/sites/default/config/sync/views.view.entree_s_.yml @@ -46,7 +46,7 @@ display: type: views_query options: disable_sql_rewrite: false - distinct: false + distinct: true replica: false query_comment: '' query_tags: { } @@ -586,6 +586,47 @@ display: entity_type: taxonomy_term entity_field: name plugin_id: string + langcode: + id: langcode + table: taxonomy_term_field_data + field: langcode + relationship: none + group_type: group + admin_label: '' + operator: in + value: + '***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***' + und: und + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + entity_type: taxonomy_term + entity_field: langcode + plugin_id: language sorts: { } title: Entrée(s) header: @@ -637,6 +678,7 @@ display: weight: -100 context: '0' menu_name: admin + rendering_language: '***LANGUAGE_entity_translation***' cache_metadata: max-age: -1 contexts: