You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deleting an entry type that is already being used inside of a ckeditor field throws an error when you go back and try to edit the entry that has that ckeditor field. I suppose some graceful failing of the nested entry (not existing, or other things going wrong) is needed here.
Steps to reproduce
Create an entry type (X)
Create a ckeditor field which is allowed to create entries of that type
Add that field to a field layout for an entry type (Y)
Create an entry (A) of type Y which has that ckeditor field in it's layout.
Use the ckeditor to Create an entry (B) of type X nested inside of the ckeditor content.
(So far so good)
Delete entry type X (the whole entry type, not the entry)
Trying to edit that entry (A) results in an error (below).
Visiting the entry's URL on the front-end results in the same error.
Additional info
Craft version: 5.0.0-beta.5
PHP version: 8.2.16
Database driver & version: MySQL 8.0.32
Plugins & versions: CKEditor | 4.0.0-beta.7
Error
craft\elements\Entry::getType(): Return value must be of type craft\models\EntryType, null returned
The text was updated successfully, but these errors were encountered:
Description
Deleting an entry type that is already being used inside of a ckeditor field throws an error when you go back and try to edit the entry that has that ckeditor field. I suppose some graceful failing of the nested entry (not existing, or other things going wrong) is needed here.
Steps to reproduce
Additional info
Error
craft\elements\Entry::getType(): Return value must be of type craft\models\EntryType, null returned
The text was updated successfully, but these errors were encountered: