Issue Bug Closed

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

Markus Klein 10/02/12, 00:47 updated 10/03/15, 20:55

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!

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.