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

Fix date field validator for empty values #2309

Merged
merged 1 commit into from
May 15, 2023
Merged

Conversation

ramonski
Copy link
Contributor

Description of the issue/feature this PR addresses

This PR fixes the failing validation that was introduced with #2307 for non-required date fields w/o a value set.

Current behavior before PR

Optional date fields w/o a value fail validation in sample header form

Desired behavior after PR is merged

Optional date fields w/o a value won't fail validation in sample header form

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

@ramonski ramonski requested a review from xispa May 15, 2023 18:56
@xispa xispa merged commit d38641e into 2.x May 15, 2023
@xispa xispa deleted the fix-date-field-validator branch May 15, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants