Bug #3412
ViewHelperNode.php -> convertArgumentValue() -- wrong handling of integers and booleans
Status: | Resolved | Start date: | 2009-05-22 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Bastian Waidelich | % Done: | 100% |
|
Category: | Core | |||
Target version: | - | |||
Has patch: | Affected Flow version: |
Description
If you enter in some fluid if condition a parameter that is a true boolean like TRUE it gets converted to FALSE by the convertArgumentValue(). Same happens if the value is an integer != 0, it's still evaluated to false. Attached patch fixes it for me.
Related issues
Associated revisions
Fluid:
- Fixed convertArgumentValue() for values of type boolean - numeric values & booleans were not converted correctly. Thanks to Susanne Moog for the patch. Resolves #3412
- Fixed HTMLSpecialCharsPostProcessor: htmlspecialchars is only applied for values of type string
- Removed obsolete ActionLinkViewHelper - please use link.action
- Adjusted FormViewHelper, Link/ActionViewHelper and Uri/ActionViewHelper to the latest changes of FLOW3
History
#1 Updated by Susanne Moog about 6 years ago
Snippet to reproduce:
<f:if condition={params.next}>
next
</f:if>
with
params->next = TRUE;
#2 Updated by Bastian Waidelich about 6 years ago
- Status changed from New to Accepted
- Assigned To set to Bastian Waidelich
#3 Updated by Bastian Waidelich about 6 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r2345.