Make TYPO3AJAX rendering false, null, 0, ...
- "" (an empty string)
- 0 (0 as an integer)
- 0.0 (0 as a float)
- "0" (0 as a string)
- array() (an empty array)
- var $var; (a variable declared, but without a value in a class)
I think it's okay for some of them, but I like to be able to return something like:
That's not possible at the moment, because calling:
$ajaxObj->addContent( 'effected_rows', 0);
Issn't saved, because 0 is an "empty" value and not saved.
Everything takes part at the method: http://api.typo3.org/typo3v4/current/html/class_8typo3ajax_8php_source.html#l00119
I think this is a missing "feature" or more a bug.
I hope you will fix this. It's not a big thing.
#3 Updated by Alexander Opitz over 4 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.