[BUGFIX] Improve DataHandler handling for dbType fields 26/46426/3
authorNicole Cordes <typo3@cordes.co>
Mon, 1 Feb 2016 10:26:35 +0000 (11:26 +0100)
committerAndreas Wolf <andreas.wolf@typo3.org>
Sat, 5 Mar 2016 13:36:45 +0000 (14:36 +0100)
commit735efdaecb9eda5389333b5187f5053e1b4a175a
treefa9eee57a0e7c3723d7e6382e03edca2ad952576
parent563e4296bf9c227c46153990334ece0ae3923e6d
[BUGFIX] Improve DataHandler handling for dbType fields

Currently we have some issues with handling database fields with type
"date" or "datetime". Those fields can't have an empty default value
in the database but might have defined default values or null. This
patch adds proper handling for both default value cases.

Resolves: #72654
Resolves: #62660
Releases: master, 7.6, 6.2
Change-Id: I429bf4fdfa32531c0034e8346ee11d3d1fb81242
Reviewed-on: https://review.typo3.org/46426
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php