Issue Bug Rejected

#82731allow 'value'-argument for inline-usage of <f:format.number>

Dieter Porth 10/11/17, 11:33 updated 10/17/17, 20:37

Description

Viewhelper won’t work inline, because you can’t give a number to the inline-version.

add the following line in the method initializeArguments of the viewhelper
$this->registerArgument(‘value’, ‘string’, ‘The value, which should be converted’, false, ‘’);

replace in method renderStatic
$stringToFormat = $renderChildrenClosure();
with
$stringToFormat = (isset($arguments[‘value’]) ? $arguments[‘value’] : $renderChildrenClosure());

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.