[BUGFIX] Activating NULL value field does not work with blank string
authorOliver Hader <oliver@typo3.org>
Tue, 20 Nov 2012 11:20:35 +0000 (12:20 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 20 Nov 2012 13:28:32 +0000 (14:28 +0100)
commit125bdf9e97e1a958b66dc93ae40a5760079cdf24
treef236f1b748b3994042036e09c1c32adef0d1786e
parentb92539c57369d8e70ee6a1634286091223f9be34
[BUGFIX] Activating NULL value field does not work with blank string

Activating a field that supports NULL values and just using a
blank string ("") does not work. The problem is a strcmp() call
that returns a false-positive on comparing NULL to blank strings

Change-Id: I59417f5f5cd814db15e2b6b725f1778d098014f6
Fixes: #43139
Releases: 6.0
Reviewed-on: http://review.typo3.org/16599
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php