Date input with lower range inserts value even if no value is set since TYPO3 10.4.18
In some of our own extensions the fields starttime and endtime with a lower value for range:
'starttime' => array( 'exclude' => 1, 'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime', 'config' => array( 'type' => 'input', 'renderType' => 'inputDateTime', 'size' => 13, 'eval' => 'datetime', 'default' => 0, 'range' => array( 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y')) ), 'behaviour' => array( 'allowLanguageSynchronization' => true, ), ), ),
Until TYPO3 10.4.17 when we create new records, the starttime and endtime is empty after save. Since TYPO3 10.4.18 the current date is inserted in both fields after save, allthough the fields were empty.
Updated by Wouter Wolters 3 months ago
- Status changed from New to Closed
Hi, thanks for the report. This issue is known and already solved in https://review.typo3.org/c/Packages/TYPO3.CMS/+/70135 and will be included in the next release. Which is planned for today according to messages in TYPO3 coredev Slack.