Issue Bug Closed

#98070TCA input eval type "year" allows any numeric values

David Hoeckele 08/04/22, 05:34 updated 12/02/25, 14:33

Description

The documentation (https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/Input/Properties/Eval.html) says “Evaluates the input to a year between 1970 and 2038”

Using the eval-type “year” it’s still possible to insert any numeric value like 9999 or 2000000.

Reviews 4

History 825

  1. David Hoeckele commented 08/04/22, 05:41

  2. Riccardo De Contardi commented 08/04/22, 07:53

    Is this related? #97521

  3. Benni Mack changed Sprint Focus Stabilization Sprint 06/06/23, 12:59

  4. Gerrit Code Review pushed patch set 1 for main to change 81314 status New Under Review 10/03/23, 14:28

  5. Gerrit Code Review pushed patch set 2 for main to change 81314 10/04/23, 07:33

  6. Gerrit Code Review pushed patch set 3 for main to change 81314 10/04/23, 07:51

  7. Gerrit Code Review pushed patch set 4 for main to change 81314 10/18/24, 14:11

  8. Gerrit Code Review pushed patch set 5 for main to change 81314 12/17/24, 18:51

  9. Gerrit Code Review pushed patch set 6 for main to change 81314 03/25/25, 11:30

  10. Benni Mack commented and changed status Under Review New 03/31/25, 19:29

    We should adapt the documentation..

    “Evaluates the input to a year between 1970 and 2038. If you need any year, then use “int” evaluation instead.”

    “int” does not even exist anymore (we have number)…. and “year” just means a natural number….

  11. Gerrit Code Review pushed patch set 1 for main to change 88852 status New Under Review 03/31/25, 20:28

  12. Gerrit Code Review pushed patch set 2 for main to change 88852 03/31/25, 20:48

  13. Gerrit Code Review pushed patch set 3 for main to change 88852 03/31/25, 21:11

  14. Garvin Hicking commented 04/03/25, 07:23

    Benni Mack wrote in #note-10:
    > We should adapt the documentation..

    This has happened now: https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-TCA/commit/a15d0fa53b96169e3bb20e2d76f064a01e4313f4

  15. Gerrit Code Review pushed patch set 4 for main to change 88852 04/07/25, 20:26

  16. Gerrit Code Review pushed patch set 5 for main to change 88852 04/08/25, 19:55

  17. Gerrit Code Review pushed patch set 6 for main to change 88852 04/08/25, 20:05

  18. Gerrit Code Review pushed patch set 7 for main to change 88852 04/10/25, 13:01

  19. Gerrit Code Review pushed patch set 8 for main to change 88852 04/10/25, 18:36

  20. Gerrit Code Review pushed patch set 9 for main to change 88852 06/10/25, 19:03

  21. Gerrit Code Review pushed patch set 10 for main to change 88852 06/11/25, 08:33

  22. Gerrit Code Review pushed patch set 11 for main to change 88852 06/11/25, 09:03

  23. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % 06/11/25, 11:35

    Applied in changeset commit:2f03ef60e91293198c10fe39b3a8fd437816134a.

  24. Stefan Bürk changed Related to #106872 06/12/25, 10:02

  25. Benni Mack changed status Resolved Closed 12/02/25, 14:33