Bug #69807
closed
EXT:form - currency filter not working correctly
Added by Björn Jacob about 9 years ago.
Updated about 7 years ago.
Sprint Focus:
Stabilization Sprint
Description
The currency filter is not working as expected. To reproduce the issue do the following:
- have a form with a confirmation page or a field which is required (to make sure form is not submitted but validated)
- enter
34567890
into a TEXTLINE or TEXTAREA element
- submit form
- new value is as expected
34.567.890,00
- submit form
- new value is
34,57
- submit form
- 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
.
- Description updated (diff)
- Subject changed from Forms: currency filter not working correctly to EXT:form - currency filter not working correctly
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43475
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43476
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43476
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43491
- Target version set to 7.5
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43475
- Sprint Focus set to Stabilization Sprint
- Target version changed from 7.5 to 7 LTS
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43475
Example form for faster testing:
enctype = multipart/form-data
method = post
prefix = tx_form
confirmation = 1
postProcessor {
1 = mail
1 {
recipientEmail = your@mail.com
senderEmail = your@mail.com
subject = Test form
}
}
10 = TEXTLINE
10 {
type = text
class = hasClass1
id = hasId1
autocomplete = off
name = salary
placeholder = Enter your desired salary.
filters {
1 = currency
1 {
decimalPoint = .
thousandSeparator = ,
}
}
label {
value = Salary
}
}
20 = SUBMIT
20 {
name = 3
type = submit
value = Submit form
}
rules {
1 = required
1 {
breakOnError = 0
showMessage = 1
message = Required
error = This field is required
element = salary
}
}
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF