Skip to content

[5.x] Improve error handling in entries fieldtype#11754

Merged
jasonvarga merged 1 commit into5.xfrom
entries-field-error-handling
Apr 30, 2025
Merged

[5.x] Improve error handling in entries fieldtype#11754
jasonvarga merged 1 commit into5.xfrom
entries-field-error-handling

Conversation

@duncanmcclean
Copy link
Copy Markdown
Member

Currently, when you view an entry where the first configured collection has been deleted, you'll get a Call to a member function entryBlueprint() on null error.

Unless you look at the code, the cause of this error isn't immediately obvious, so this PR ensures that a CollectionNotFoundException is thrown the collection can't be found.

Related: #11753

@jasonvarga jasonvarga merged commit 05156f2 into 5.x Apr 30, 2025
26 checks passed
@jasonvarga jasonvarga deleted the entries-field-error-handling branch April 30, 2025 13:16
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