Skip to content

[5.x] Fix order() error if structure contains null item#14802

Draft
morhi wants to merge 1 commit into
statamic:5.xfrom
morhi:fix/more-robust-order-call
Draft

[5.x] Fix order() error if structure contains null item#14802
morhi wants to merge 1 commit into
statamic:5.xfrom
morhi:fix/more-robust-order-call

Conversation

@morhi

@morhi morhi commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

When calling order() on an entry and the structure contains, for whatever reason, a null item, it would result in a fatal error from array_flip(). This commit makes the order() call more robust.

Fixes #14801

When calling order() on an entry and the structure contains, for
whatever reason, a `null` item, it would result in a fatal error from
array_flip(). This commit makes the order() call more robust.

Fixes statamic#14801
@jasonvarga

Copy link
Copy Markdown
Member

Please target 6.x. v5 is no longer supported.

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