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

Added validation check for colourpicker form widget #1020

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

jaxwilko
Copy link
Member

This PR adds validation for the colorpicker formwidget.

On save, the value will be tested against the configured format. If all is selected, then the colorpicker will validate against any supported format.

If somebody is using a custom format (not sure why they would but currently nothing prevents it), then the save value will be returned unmodified.

If the value fails validation, then an ApplicationException is thrown.

@LukeTowers LukeTowers added Status: Completed maintenance PRs that fix bugs, are translation changes or make only minor changes labels Dec 12, 2023
@LukeTowers LukeTowers added this to the v1.2.4 milestone Dec 12, 2023
@LukeTowers LukeTowers merged commit 5bc9257 into develop Dec 14, 2023
11 checks passed
@LukeTowers LukeTowers deleted the wip/colour-picker-validation branch December 14, 2023 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance PRs that fix bugs, are translation changes or make only minor changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants