Bug #69801
closed
EXT:form - Integer filter is not working as expected
Added by Björn Jacob over 8 years ago.
Updated over 8 years ago.
Description
When applying the integer filter to a field element the filter does not work as expected. Instead of removing all other chars except numbers the value is cleared completely. I.e. no value is submitted/ the field stays empty.
Works for:
Works not for:
- Description updated (diff)
Code for testing:
enctype = multipart/form-data
method = post
prefix = tx_form
confirmation = 1
postProcessor {
1 = mail
1 {
recipientEmail =
senderEmail =
}
}
10 = TEXTAREA
10 {
cols = 40
name = msg
placeholder = Please enter your message.
rows = 5
filters {
1 = trim
}
label {
value = Message
}
}
20 = TEXTLINE
20 {
name = name
placeholder = Please enter your name.
filters {
1 = trim
}
label {
value = Message
}
}
30 = SUBMIT
30 {
name = submit
value = Submit
}
- Subject changed from Forms: integer filter is not working as expected to EXT:form - Integer filter is not working as expected
- Status changed from New to Under Review
- Assignee set to Björn Jacob
IMHO the description wrong. TEXTLINE works, but TEXTAREA not.
Its not the integer filter, its a wrong textarea data handling.
A fix is available at patchset2: https://review.typo3.org/#/c/43471/
- Status changed from Under Review to Needs Feedback
I change the status because of forger. If the status is "under review" a link is shown at forger with a non existing target (because there is no review for this ticket id).
- Status changed from Needs Feedback to Closed
- Assignee deleted (
Björn Jacob)
Works like a charm with v7.5. Closing this issue.
Also available in: Atom
PDF