Project

General

Profile

Actions

Bug #69807

closed

EXT:form - currency filter not working correctly

Added by Björn Jacob about 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
Start date:
2015-09-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Stabilization Sprint

Description

The currency filter is not working as expected. To reproduce the issue do the following:

  1. have a form with a confirmation page or a field which is required (to make sure form is not submitted but validated)
  2. enter 34567890 into a TEXTLINE or TEXTAREA element
  3. submit form
  4. new value is as expected 34.567.890,00
  5. submit form
  6. new value is 34,57
  7. submit form
  8. new value is 34,00

The filter is configured as follows:


temp.filterCurrency = currency
temp.filterCurrency {
    # default: .
    decimalPoint = ,
    # default: ,
    thousandSeparator = .
}

If the default configuration of this filter is used the second step (34,57) is not happening :) but the final result is 34.00.

Actions

Also available in: Atom PDF