Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Prevent configuring multiple conditions for the same field #10110

Merged

Conversation

duncanmcclean
Copy link
Member

This pull request prevents you configuring multiple conditions for the same field in the blueprint/fieldset builder.

Previously, the "Field" dropdown in the builder allowed you to select fields even if they already had conditions configured against them. Then, when you saved the field, only one of the multiple conditions would actually be saved.

This PR prevents you from doing that until we implement the ability to configure multiple conditions for the same field (see statamic/ideas#1101).

I originally fixed this in #9199. However, after my refactoring of the field conditions builder in #9379 that fix seems to have been lost.

@jasonvarga jasonvarga merged commit ff8bbc9 into 5.x May 17, 2024
29 checks passed
@jasonvarga jasonvarga deleted the prevent-configuring-multiple-conditions-for-the-same-field branch May 17, 2024 20:30
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