Bug #59255
closed
Switch ViewHelper breaks with a NULL value
Added by Björn Fromme over 10 years ago.
Updated about 6 years ago.
Description
The f:switch ViewHelper breaks with Fluid error No value found for key "TYPO3\CMS\Fluid\ViewHelpers\SwitchViewHelper->switchExpression", thus the key cannot be removed.
for a NULL
value. A possible solution is to serialize the value before storing it in the ViewHelper variable container.
- Status changed from New to Under Review
- Project changed from 2559 to TYPO3 Core
- Category set to Fluid
- TYPO3 Version set to 6.2
- Is Regression set to No
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/30804
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/30804
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35431
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to New
The proposed solution of serialzing the expression was rejected by the strategy team. This issue is therefor reopened.
- Status changed from New to Under Review
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42133
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42133
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42133
- Status changed from Under Review to Resolved
I'm a little bit confused. I don't see the changes from the last changeset in the current core (checked 6.2.30 and the master branch). The method ViewHelperVariableContainer::exists should be fixed but is still like that:
return isset($this->objects[$viewHelperName][$key]);
Do I miss something?
- Status changed from Resolved to Closed
Also available in: Atom
PDF