Skip to content

Update UniqueValidator to support filter property #12941

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

Merged

Conversation

nfourtythree
Copy link
Contributor

@nfourtythree nfourtythree commented Mar 21, 2023

Description

Currently Craft's implementation of UniqueValidator overrides the filter property. This means if you want to add extra filters they will be removed.

This PR merges the Craft logic with any filter logic that is being passed in.

Todo

  • See if there is a way to merge a closure filter
  • Update since tag on UniqueValidatorTest class

@nfourtythree nfourtythree added the enhancement improvements to existing features label Mar 21, 2023
@nfourtythree nfourtythree self-assigned this Mar 21, 2023
@nfourtythree nfourtythree changed the base branch from develop to 4.5 March 23, 2023 12:50
@nfourtythree nfourtythree marked this pull request as ready for review March 23, 2023 13:04
@nfourtythree nfourtythree requested a review from a team as a code owner March 23, 2023 13:04
@brandonkelly brandonkelly merged commit 8ec62f0 into 4.5 Mar 29, 2023
@brandonkelly brandonkelly deleted the feature/update-unique-validator-filter-compatibility branch March 29, 2023 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants