Project

General

Profile

Actions

Bug #69801

closed

EXT:form - Integer filter is not working as expected

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

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
Works not for:
  • TEXTLINE
Actions #1

Updated by Björn Jacob about 9 years ago

  • Description updated (diff)
Actions #2

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
}

Actions #3

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
Actions #4

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/

Actions #5

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).

Actions #6

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

Also available in: Atom PDF