Project

General

Profile

Actions

Bug #19514

closed

TCEmain wrongly tests required input-type fields

Added by Francois Suter over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-10-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When an input-type field is marked as "required" in the TCA, TCEmain tests it simply with

if (!$value)

This is insufficient, since in the case of an "int" field, for example, 0 is a perfectly valid value, but it will fail the "required" test.

The solution is to introduce a finer testing:

if (!isset($value) || $value === '')

(issue imported from #M9659)

Actions #1

Updated by Oliver Hader over 15 years ago

Committed to SVN:
  • TYPO3_4-1 (rev. 4394)
  • TYPO3_4-2 (rev. 4392)
  • Trunk (rev. 4392)
Actions

Also available in: Atom PDF