mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
11 lines
535 B
Markdown
11 lines
535 B
Markdown
# core_form (subsystem) Upgrade notes
|
|
|
|
## 4.5
|
|
|
|
### Added
|
|
|
|
- The `duration` form field type has been modified to validate that the supplied value is a positive value.
|
|
Previously it could be any numeric value, but every usage of this field in Moodle was expecting a positive value. When a negative value was provided and accepted, subtle bugs could occur.
|
|
Where a negative duration _is_ allowed, the `allownegative` attribute can be set to `true`.
|
|
|
|
For more information see [MDL-82687](https://tracker.moodle.org/browse/MDL-82687)
|