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

opening hours validation fatal error #3165

Open
vitek-rostislav opened this issue May 14, 2024 · 0 comments
Open

opening hours validation fatal error #3165

vitek-rostislav opened this issue May 14, 2024 · 0 comments
Labels
Bug Something isn't working In Backlog

Comments

@vitek-rostislav
Copy link
Contributor

Describe the bug

To Reproduce

  1. Go to admin/store/edit/1
  2. Click on 'add opening hours' (for Saturday or Sunday)
  3. See error:

image

The problem is that the callback validation StoreFormType::validateOpeningHours() is triggered before Constraints\NotBlank on OpeningHoursRangeFormType fields (openingTime and closingTime) or maybe for some reason the NotBlank validation is not performed against some days (the bug occurs only when adding empty opening hours for Saturday or Sunday 🤔 )

@vitek-rostislav vitek-rostislav added Bug Something isn't working In Backlog labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working In Backlog
Projects
None yet
Development

No branches or pull requests

1 participant