Project

General

Profile

Actions

Bug #41511

closed

Epic #62041: twbs Bootstrap backend, refactor EXT:t3skin and HTML5 output

Epic #62836: FormEngine PHP/HTML Improvements & Bootstrap

TCA eval int,required does not accept 0 (zero)

Added by Markus Klein over 11 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2012-10-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Having a TCA setting like

'config' => array(
  ...
  'eval' => 'int,required'
)

does not allow the valid value 0 (zero) in the form. Whenever 0 is entered, the value is removed and the required field marker is shown.

Switching the two keywords (required,int) allows the value 0, even though the 0 is not displayed in the field, but is removed automatically.

This is inconsistent!


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #70288: Eval int required check allows 0Closed2015-10-02

Actions
Actions #1

Updated by Steffen Gebert over 11 years ago

  • Status changed from New to Accepted
  • Priority changed from Must have to Should have

Sounds reasonable, can you check in the code, why this happens?

Actions #2

Updated by Mathias Schreiber over 9 years ago

  • Target version set to 7.0
  • Is Regression set to No
Actions #3

Updated by Felix Kopp over 9 years ago

  • Parent task set to #62836
Actions #4

Updated by Mathias Schreiber over 9 years ago

  • Target version changed from 7.0 to 7.1 (Cleanup)
Actions #5

Updated by Markus Klein about 9 years ago

  • Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
Actions #6

Updated by Susanne Moog over 8 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #7

Updated by Benni Mack over 8 years ago

  • Target version changed from 7.5 to 7 LTS
Actions #8

Updated by Daniel Goerz over 8 years ago

  • Status changed from Accepted to Needs Feedback

I cannot reproduce this error on 7.6-dev. I can enter 0 into fields with 'required,int' as well as 'int,required' and save successfully. So the question raises if someone else could reproduce this behavior. Then please update the ticket.

Actions #9

Updated by Markus Klein over 8 years ago

  • Status changed from Needs Feedback to Closed
  • Target version deleted (7 LTS)

Closing this for the time being. The rewritten FormEngine for sure does not care about the order of evals anymore.

Actions

Also available in: Atom PDF