Project

General

Profile

Actions

Bug #98631

closed

CurrencyViewHelper have parameter decimals as string, int needed

Added by Urs Maag over 1 year ago. Updated about 1 year ago.

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'];


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #99283: number_format require integer as decimal Closed2022-12-06

Actions
Actions #1

Updated by Benni Mack about 1 year ago

  • Related to Bug #99283: number_format require integer as decimal added
Actions #2

Updated by Benni Mack about 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

Also available in: Atom PDF