88658[BUGFIX] Treat 0 as a defined value for nullable datetime fields
Commit message
Review
-
Code review CR +2 Done
- Benjamin Franzke +2
- Georg Ringer +1
- Garvin Hicking +1
- Benni Mack +1
-
Verified V +2 Done
- Benjamin Franzke +2
- Georg Ringer +1
- Garvin Hicking +1
- Benni Mack +1
- core-ci +1 CI
Issues 2
Files 13
- Build/phpstan/phpstan-baseline.neon+0 −6
- Build/Sources/TypeScript/backend/tests/form-engine-validation-test.ts+0 −24
- Build/Sources/TypeScript/backend/form-engine-validation.ts+1 −2
- typo3/sysext/backend/Classes/Form/Element/DatetimeElement.php+22 −20
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine-validation.js+1 −1
- typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php+1 −1
- typo3/sysext/core/Classes/DataHandling/DataHandler.php+5 −4
- typo3/sysext/core/Documentation/Changelog/13.4.x/Important-106401-Treat0AsADefinedValueForNullableDatetimeFields.rst2new+59 −0
- typo3/sysext/core/Tests/Acceptance/Application/FormEngine/ElementsBasicInputDateCest.php+19 −3
- typo3/sysext/styleguide/Classes/TcaDataGenerator/FieldGenerator/TypeDatetimeNullableRange.phpnew+45 −0
- typo3/sysext/styleguide/Classes/TcaDataGenerator/FieldGeneratorInterface.php+1 −1
- typo3/sysext/styleguide/Configuration/TCA/tx_styleguide_elements_basic.php4+13 −5
- typo3/sysext/styleguide/Configuration/Services.yaml+1 −0
Review log 2231
Show 36 earlier messages
-
Benjamin Franzke uploaded patch set 1 03/20/25, 10:56
-
core-ci voted on patch set 1 V -1 03/20/25, 11:08 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/75886
-
Benjamin Franzke uploaded patch set 2
V -103/20/25, 12:49 -
core-ci voted on patch set 2 V -1 03/20/25, 13:02 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/75890
-
Benjamin Franzke uploaded patch set 3
V -103/20/25, 13:05 -
core-ci voted on patch set 3 V -1 03/20/25, 13:18 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/75891
-
Benjamin Franzke uploaded patch set 4
V -103/20/25, 13:23 -
core-ci voted on patch set 4 V +1 03/20/25, 13:36 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/75895
-
Benjamin Franzke uploaded patch set 5
V +103/20/25, 13:51 -
Benjamin Franzke marked it ready for review 03/20/25, 13:53
-
core-ci voted on patch set 5 V +1 03/20/25, 13:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/75898
-
Benjamin Franzke uploaded patch set 6
V +103/20/25, 14:15 -
core-ci voted on patch set 6 V +1 03/20/25, 14:23 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/75900
-
Benni Mack voted on patch set 6 CR +1 V +1 03/20/25, 15:53
-
Garvin Hicking commented on patch set 6 03/20/25, 21:00
-
Garvin Hicking commented on patch set 6 03/20/25, 21:19
tx_styleguide_elements_basic.php:497would keeping/having such a case be beneficial to spot issues that extensions might face? (it makes less sense with the new behavior of course, but I'm quite sure people may have this kind of TCA setup. Should we add a TCA migration to report this setup with nullable+default=0?) -
Benjamin Franzke uploaded patch set 7
CR +1V +103/21/25, 05:12 -
Benjamin Franzke commented on patch set 7 03/21/25, 05:12
Important-106401-Treat0AsADefinedValueForNullableDatetimeFields.rst:22Replythanks, good point. done.tx_styleguide_elements_basic.php:497Replyyes, but we have that case in inputdatetime_11. (with nullable false) I moved to a new column name, since existing (test) instances that have been generated by ext:styleguide (by raw import, datahandler would have never written that) were initialized with the invalid value `0` (does not match lower criteria) in database instead of null. -
core-ci voted on patch set 7 V +1 03/21/25, 05:21 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/75928
-
Garvin Hicking commented on patch set 7 03/21/25, 07:06
tx_styleguide_elements_basic.php:497ReplyThanks for the text improvement, that clears up more for me. What I meant here was, if we should have a case of nullable+dwfault '0', that is not longer contained? People may have this set up, and I guess this will continue to work and put a '1970' stamp as values? Or will datahandler ignore the '0' default and enforce 'null'? (sorry cant actually test this myself, mobile only for the weekend) -
Benjamin Franzke uploaded patch set 8
V +103/21/25, 07:22 -
Benjamin Franzke commented on patch set 8 03/21/25, 07:22
tx_styleguide_elements_basic.php:497ReplyAh I see, sounds good. Done. -
core-ci voted on patch set 8 V +1 03/21/25, 07:31 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/75935
-
Benni Mack voted on patch set 8 CR +1 V +1 03/22/25, 14:32
-
Benjamin Franzke uploaded patch set 9
CR +1V +103/26/25, 19:19Rebase -
core-ci voted on patch set 9 V +1 03/26/25, 19:28 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/76401
-
Garvin Hicking commented on patch set 9 CR +1 V +1 03/26/25, 19:35
(forgot to submit my vote, was stored as draft) I have tested a few cases, also with settings of my projects, and this seems to work well. It closes a "conceptual mistake" and I believe it should in most cases really be the actual intended setup. Since fields created as nullable were already able to return NULL, any extbase implementation should be unaffected by this (or else, NULLable fields would be wrongly set in third party code and would need to be set NOT NULLable). Having said this: Nonetheless I am still a bit afraid of this. But we need to address this, so.... lgtm :) -
Georg Ringer voted on patch set 9 CR +1 V +1 03/26/25, 21:43
-
Benni Mack voted on patch set 9 CR +1 V +1 03/27/25, 08:39
-
Benjamin Franzke voted on patch set 9 CR +2 V +2 03/27/25, 09:58
-
Benjamin Franzke merged patch set 10 03/27/25, 10:15
Important-106401-Treat0AsADefinedValueForNullableDatetimeFields.rst:22