Bug #43139

Activating NULL value field does not work with blank string

Added by Oliver Hader over 2 years ago. Updated over 2 years ago.

Status:Resolved Start date:2012-11-20
Priority:Should have Due date:
Assigned To:Oliver Hader % Done:

100%

Category:Backend API Spent time: -
Target version:6.0.0-RC2
TYPO3 Version:6.0 Is Regression:
PHP Version:5.3 Sprint Focus:
Complexity:

Description

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.


Related issues

related to Core - Feature #41773: Add possibility to store NULL values Resolved 2012-10-09

Associated revisions

Revision 125bdf9e
Added by Oliver Hader over 2 years ago

[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

History

#1 Updated by Gerrit Code Review over 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16599

#2 Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16599

#3 Updated by Oliver Hader over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF