[BUGFIX] Improve DataHandler handling for dbType fields 72/50672/2
authorNicole Cordes <typo3@cordes.co>
Mon, 1 Feb 2016 10:26:35 +0000 (11:26 +0100)
committerNicole Cordes <typo3@cordes.co>
Thu, 15 Dec 2016 20:56:41 +0000 (21:56 +0100)
commitadafd6d128f1c05d8c1776a4b8c0c1629e59918a
treec273ed586416b4b0d14c55e3b16d38ef0af0a86b
parenteff6c603a24d8072cec2dec5cfcbd3c61be51448
[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/50672
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php