Skip to content

don't ignore blocks that only have fields with object-type value#1713

Open
i-just wants to merge 1 commit into5.xfrom
bugfix/1707-matrix-and-dates
Open

don't ignore blocks that only have fields with object-type value#1713
i-just wants to merge 1 commit into5.xfrom
bugfix/1707-matrix-and-dates

Conversation

@i-just
Copy link
Contributor

@i-just i-just commented Dec 23, 2025

Description

Fixes an issue where a matrix block/nested entry is wrongly deemed as empty when the only data imported into it is, e.g. date.

Related issues

#1707

@i-just i-just requested a review from angrybrad as a code owner December 23, 2025 07:34
@jamesmacwhite
Copy link
Contributor

jamesmacwhite commented Jan 10, 2026

I can confirm this bug also happens when the fields within the matrix block are just time fields. However, a workaround is add another field e.g. plain text and add some data like an random string or ID to the field layout, then the blocks will be created without issues.

Edit: This appears to only partially workaround the issue, it still appears that if the data being imported contains multiple items as an array only the first item is imported, however switching to another field type entirely such as plain text works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants