From 8213555ce8ae16afa208d4c3dab254cd3c116a0e Mon Sep 17 00:00:00 2001 From: "Quintino A. G. Souza" Date: Wed, 25 Mar 2026 13:37:19 -0300 Subject: [PATCH] Corrige handler do campo field_user_department para default:group MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Substitui handler: views (referenciando view inexistente 'departments') por handler: default:group com target_bundles, eliminando o erro 'Attempt to create a field without a field_name' na instalação. --- .../field.field.user.user.field_user_department.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/ldap_departments_sync/config/optional/field.field.user.user.field_user_department.yml b/modules/ldap_departments_sync/config/optional/field.field.user.user.field_user_department.yml index bcbcd4d..5f0f2eb 100644 --- a/modules/ldap_departments_sync/config/optional/field.field.user.user.field_user_department.yml +++ b/modules/ldap_departments_sync/config/optional/field.field.user.user.field_user_department.yml @@ -16,9 +16,12 @@ translatable: true default_value: { } default_value_callback: '' settings: - handler: views + handler: default:group handler_settings: - view: - view_name: departments - display_name: entity_reference_1 + target_bundles: + departments: departments + sort: + field: _none + auto_create: false + auto_create_bundle: '' field_type: entity_reference