Issue Bug Closed

#69807EXT:form - currency filter not working correctly

Björn Jacob 09/15/15, 10:06 updated 10/21/17, 17:42

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.

Reviews 3