Skip to content

additional safeguard in case matrix field has no blocks#1622

Merged
angrybrad merged 1 commit into5.xfrom
bugfix/1617-safeguard-for-matrix-without-blocks
Apr 20, 2025
Merged

additional safeguard in case matrix field has no blocks#1622
angrybrad merged 1 commit into5.xfrom
bugfix/1617-safeguard-for-matrix-without-blocks

Conversation

@i-just
Copy link
Contributor

@i-just i-just commented Apr 3, 2025

Description

If no blocks were identified for a matrix field, return null straight away.

The error described in the related issue shouldn’t actually get triggered in v5 (for Craft 4), but this check won’t do any harm, so targeting v5 for consistency between versions.

Related issues

#1617

@i-just i-just requested a review from angrybrad as a code owner April 3, 2025 09:07
@angrybrad angrybrad merged commit b50ee2a into 5.x Apr 20, 2025
6 checks passed
@angrybrad angrybrad deleted the bugfix/1617-safeguard-for-matrix-without-blocks branch April 20, 2025 04:17
angrybrad added a commit that referenced this pull request Apr 20, 2025
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