Skip to content

Commit

Permalink
[BUGFIX] Allow for passing first argument of math viewhelpers via cha…
Browse files Browse the repository at this point in the history
…ined inline notation

This makes e.g. following notation work:
{collection -> v:iterator.extract(key: 'property') -> v:math.sum()}

fixes FluidTYPO3#347
  • Loading branch information
mbrodala committed Oct 16, 2013
1 parent 4cc4ab6 commit 99a8980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Math/AbstractSingleMathViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function render() {
*/
protected function getInlineArgument() {
$a = $this->renderChildren();
if (TRUE === isset($this->arguments['a'])) {
if (NULL === $a && TRUE === isset($this->arguments['a'])) {
$a = $this->arguments['a'];
}
if (NULL === $a && TRUE === (boolean) $this->arguments['fail']) {
Expand Down

0 comments on commit 99a8980

Please sign in to comment.