Syncing file fields sets display field to NULL

Created on 30 September 2024, about 2 months ago

Problem/Motivation

When syncing a content type with a file field, it's field storage for 'Enable Display Field' checkbox does not sync over thus it is marked as NULL in the database (

Steps to reproduce

Create a content type with a file field on the server. Ensure under Field Storage, 'Enable Display field' checkbox is checked.
Create an example content of the aforementioned content type.
Sync it to the client using entity_share_client. Now check to see value of [field_name]_display in the node__[field_name] table.
Assert it is NULL

Proposed resolution

For now, my quick workaround is to manually set that NULL to 1 using SQL
UPDATE node__field_name SET field_name_display=1 WHERE field_name_display IS NULL;

Remaining tasks

Add logic in entity_share_client that does this for incoming files automatically

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Entity Share Client

Created by

πŸ‡ΊπŸ‡ΈUnited States zaurav McLean, VA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024