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

Also available in: Atom PDF