Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
3.0.2
-
None
-
MOODLE_30_STABLE
Description
Unable to use Number field type to store zero value when set to "required" (see MDL 53402), I tried to use a Text field type to input a single zero character, but could not, as both field types (Number and Text) use the same base data_field_base::notemptyfield() with empty value validation using "!empty($value)"
As with MDL-53402, suggesting to use isset($value) instead of !empty($value).
Attachments
Issue Links
- is duplicated by
-
MDL-53651 ZERO is not considered as a value for required Fields
-
- Closed
-
- will be (partly) resolved by
-
MDL-53402 Setting database field type Number to required should allow zero value
-
- Closed
-
- will help resolve
-
MDL-53402 Setting database field type Number to required should allow zero value
-
- Closed
-