Skip to content

[4.x] Fix "A field with a handle of X already exists" error when editing fieldsets - #9718

Merged
jasonvarga merged 1 commit into
4.xfrom
fix/fieldset-field-with-handle-already-exists-error
Mar 12, 2024
Merged

[4.x] Fix "A field with a handle of X already exists" error when editing fieldsets#9718
jasonvarga merged 1 commit into
4.xfrom
fix/fieldset-field-with-handle-already-exists-error

Conversation

@duncanmcclean

@duncanmccleanduncanmcclean commented Mar 12, 2024

Copy link
Copy Markdown
Member

This pull request fixes an issue when editing fieldsets where you'd run into this error message when applying changes to a field: "A field with the handle of ... already exists".

This validation message should only be displayed when there's already a field in the blueprint/fieldset with the same handle as the field you're applying.

For some reason, the code inside the ->when() closure sometimes wasn't being called, meaning it wouldn't ignore the current field when looking at all fields for those with the same handle.

Fixes#9716.
Caused by #9337.

@jasonvarga
jasonvarga merged commit 1ff8052 into 4.xMar 12, 2024
@jasonvarga
jasonvarga deleted the fix/fieldset-field-with-handle-already-exists-error branch March 12, 2024 19:27
Sign up for freeto 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.

Since version 4.53.0, when clicking apply on some fields, gives this error : "A field with a handle of X already exists."

2 participants

@duncanmcclean@jasonvarga