Actions
Bug #69801
closedEXT:form - Integer filter is not working as expected
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2015-09-14
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
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:- TEXTAREA
- TEXTLINE
Updated by Björn Jacob about 9 years ago
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 }
Updated by Björn Jacob about 9 years ago
- Subject changed from Forms: integer filter is not working as expected to EXT:form - Integer filter is not working as expected
Updated by Ralf Zimmermann about 9 years ago
- 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/
Updated by Ralf Zimmermann about 9 years ago
- 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).
Updated by Björn Jacob about 9 years ago
- Status changed from Needs Feedback to Closed
- Assignee deleted (
Björn Jacob)
Works like a charm with v7.5. Closing this issue.
Actions