Actions
Bug #98631
closedCurrencyViewHelper have parameter decimals as string, int needed
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2022-10-17
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Currency ViewHelper Decimals
Complexity:
easy
Is Regression:
Sprint Focus:
Description
Class "TYPO3\CMS\Fluid\ViewHelpers\Format\CurrencyViewHelper", method "renderStatic" gets parameter "decimals" and have type string. But type int is needed in php function number_format.
Solution: cast parameter "decimals" to int on line 109: $decimals = (int)$arguments['decimals'];
Updated by Benni Mack over 1 year ago
- Related to Bug #99283: number_format require integer as decimal added
Updated by Benni Mack over 1 year ago
- Status changed from New to Closed
Cannot reproduce in v12 and v11 anymore, as this is fixed with #99283. If you still have a problem, let me know and i will re-open the ticket.
Actions