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

Calendar demo submit is broken #1893

Closed
mvorisek opened this issue Oct 8, 2022 · 2 comments · Fixed by #2067
Closed

Calendar demo submit is broken #1893

mvorisek opened this issue Oct 8, 2022 · 2 comments · Fixed by #2067
Labels

Comments

@mvorisek
Copy link
Member

mvorisek commented Oct 8, 2022

Steps to reproduce:

  1. open demos/form-control/calendar.php
  2. click Save

image

@mvorisek
Copy link
Member Author

mvorisek commented Jun 7, 2023

No custom UI format per form control should be needed, global (per App) UI persistence should be enough.

@mvorisek
Copy link
Member Author

mvorisek commented Jun 7, 2023

The problem in the demo is UI persistence date/time format is mutated: https://github.com/atk4/ui/blob/4.0.0/demos/form-control/calendar.php#L20

That is simply a wrong usage, as the form input is processed at once with one UI persistence format, basically mutation of UI persistence formatting after UI persistence is used is not supported and never will be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

1 participant