[BUGFIX] EXT:form - Cover empty strings for "skipIfValueIsEmpty" 71/54971/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Tue, 7 Nov 2017 10:48:00 +0000 (11:48 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Thu, 7 Dec 2017 21:07:48 +0000 (22:07 +0100)
commitb1f7a611ad3165bbda3b604c0aa6f0e1708c835b
treebc9cb9b2d205b2bd593e53e778505d2f020771d6
parent90124f9e29ad0f5b4b724acc1b99218fe90b5ee5
[BUGFIX] EXT:form - Cover empty strings for "skipIfValueIsEmpty"

This ensures that e.g. unchecked checkboxes are not tried to be
stored in the database as empty strings causing an error on int
fields.

Resolves: #82938
Releases: master, 8.7
Change-Id: I6f1811b8fdf17de4c0dd1fac4dec8076600924c6
Reviewed-on: https://review.typo3.org/54971
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/form/Classes/Domain/Finishers/SaveToDatabaseFinisher.php
typo3/sysext/form/Tests/Unit/Domain/Finishers/SaveToDatabaseFinisherTest.php