[FEATURE] Introduce TCA type "datetime"
In our process of using dedicated TCA types, the new TCA type "date" is introduced and replaces "renderType=inputDateTime" of TCA type "input". Notable changes to the previous behaviour: - the "format" option, which was already documented but never used in FormEngine, is now mandatory - TCA option "max" is no longer evaluated - The only allowed eval's are "null" and "int" The corresponding FormEngine element class is renamed from InputDateTimeElement to DatetimeElement. This is covered in the ClassAliasMap. Note: The "eval=int" seems to be superfluous since the field value should always be stored as int in case no native type ("dbType") is used. However, this would be breaking and is therefore done in a separate followup patch. This has already been kickstarted in https://review.typo3.org/c/Packages/TYPO3.CMS/+/74027/12. Resolves: #97232 Releases: main Change-Id: I94c6d12759cd7787e6185ab36d2fcd60f5dc15df Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74027 Tested-by:core-ci <typo3@b13.com> Tested-by:
Nikita Hovratov <nikita.h@live.de> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Nikita Hovratov <nikita.h@live.de> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- Build/Sources/TypeScript/backend/form-engine/element/datetime-element.ts 27 additions, 12 deletions...ypeScript/backend/form-engine/element/datetime-element.ts
- Build/Sources/TypeScript/backend/form-engine/element/link-element.ts 0 additions, 3 deletions...es/TypeScript/backend/form-engine/element/link-element.ts
- Build/phpstan/phpstan-baseline.neon 1 addition, 1 deletionBuild/phpstan/phpstan-baseline.neon
- typo3/sysext/backend/Classes/Controller/SiteConfigurationController.php 3 additions, 0 deletions...ackend/Classes/Controller/SiteConfigurationController.php
- typo3/sysext/backend/Classes/Form/Element/DatetimeElement.php 46 additions, 46 deletions...3/sysext/backend/Classes/Form/Element/DatetimeElement.php
- typo3/sysext/backend/Classes/Form/Element/InputTextElement.php 1 addition, 2 deletions.../sysext/backend/Classes/Form/Element/InputTextElement.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/DatabaseRowDateTimeFields.php 4 additions, 3 deletions...asses/Form/FormDataProvider/DatabaseRowDateTimeFields.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaColumnsProcessPlaceholders.php 1 addition, 0 deletions...s/Form/FormDataProvider/TcaColumnsProcessPlaceholders.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInputPlaceholders.php 1 addition, 0 deletions...nd/Classes/Form/FormDataProvider/TcaInputPlaceholders.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaRecordTitle.php 27 additions, 33 deletions.../backend/Classes/Form/FormDataProvider/TcaRecordTitle.php
- typo3/sysext/backend/Classes/Form/NodeFactory.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/Form/NodeFactory.php
- typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php 1 addition, 0 deletions...sysext/backend/Classes/Form/Utility/FormEngineUtility.php
- typo3/sysext/backend/Classes/Search/LiveSearch/LiveSearch.php 4 additions, 3 deletions...3/sysext/backend/Classes/Search/LiveSearch/LiveSearch.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 58 additions, 60 deletionstypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/backend/Migrations/Code/ClassAliasMap.php 1 addition, 0 deletionstypo3/sysext/backend/Migrations/Code/ClassAliasMap.php
- typo3/sysext/backend/Migrations/Code/LegacyClassesForIde.php 6 additions, 0 deletionstypo3/sysext/backend/Migrations/Code/LegacyClassesForIde.php
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/datetime-element.js 13 additions, 0 deletions...Public/JavaScript/form-engine/element/datetime-element.js
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/link-element.js 1 addition, 1 deletion...ces/Public/JavaScript/form-engine/element/link-element.js
- typo3/sysext/backend/Tests/Unit/Form/Element/DatetimeElementTest.php 4 additions, 6 deletions...t/backend/Tests/Unit/Form/Element/DatetimeElementTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowDateTimeFieldsTest.php 6 additions, 0 deletions...t/Form/FormDataProvider/DatabaseRowDateTimeFieldsTest.php
Please register or sign in to comment