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

Not possible to clear "deadline_registration" in backend once it was set #548

Closed
mk-mxp opened this issue Jun 14, 2020 · 4 comments · Fixed by #549
Closed

Not possible to clear "deadline_registration" in backend once it was set #548

mk-mxp opened this issue Jun 14, 2020 · 4 comments · Fixed by #549
Assignees
Labels
Milestone

Comments

@mk-mxp
Copy link
Contributor

mk-mxp commented Jun 14, 2020

When adding a seminar via backend, it is possible to not set deadline_registration. Then it is OK to leave it empty on further editing that seminar. Once a deadline_registration was set, it is no more possible to remove it (set to empty). It may be related to Typo3 9.5 not allowing to enter "0" for a date, but having a clear icon wiping out the value.

The problem comes up before the TCE value hook is triggered, which then is provided with the old seminar data (with the old deadline_registration value set).

Screenshot_2020-06-14

@oliverklee
Copy link
Owner

Are you using MySQL in strict mode? (This might be a bug in the TYPO3 core.)

@oliverklee oliverklee added the bug label Jun 14, 2020
@oliverklee
Copy link
Owner

And could you also please test (without any changes to your MySQL configuration) whether it helps to change the eval for the deadline_registration field in the TCA from datetime to datetime,int?

@mk-mxp
Copy link
Contributor Author

mk-mxp commented Jun 14, 2020

It is a MariaDB 10.4.12, modes are:

MariaDB [(none)]> SELECT @@GLOBAL.sql_mode;
STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

Setting eval to your suggestion does the trick.

@oliverklee
Copy link
Owner

I have reported a bug for the Core: https://forge.typo3.org/issues/91731

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

Successfully merging a pull request may close this issue.

2 participants