Skip to content

Make project config more tolerant when adding fields without groups #11522

Closed Answered by brandonkelly
hiasl asked this question in Ideas
Discussion options

You must be logged in to vote

We can’t make changes to the project config as it’s being applied (like modifying the incoming field’s fieldGroup value).

However an invalid field group UID won’t stop the field from getting saved; it will just be missing its groupId afterward. So I’ve just made a change for the next release, to make Craft more defensive about the fields missing their groupIds (cb33c74). You won’t be able to add them to a field layout, but you will be able to access SettingsFields without getting an error, and the field will be called out as “(Ungrouped)”:

From there you can edit the field and assign it to a group.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hiasl
Comment options

@brandonkelly
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants