Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.7.7, 3.8.4, 3.9.1
-
Component/s: Forms Library
-
Testing Instructions:
-
Affected Branches:MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
-
Fixed Branches:MOODLE_38_STABLE, MOODLE_39_STABLE
-
Pull from Repository:
-
Pull 3.9 Branch:
MDL-69507_39 -
Pull 3.9 Diff URL:
-
Pull 3.10 Branch:
MDL-69507_310 -
Pull 3.10 Diff URL:
-
Pull Master Branch:
-
Pull Master Diff URL:
Description
Steps to reproduce:
- On a Moodle site using Postgres.
- Create a quiz, and try to set the time limit to 9.3 seconds.
Actual result: when you try to save the form, you get a database error 'invalid input syntax for integer: "9.3"'.
Expected result: Either time is just saved as 9 seconds (I think this is the better option - anyone who thinks a web app working over the internet can be accurate to more than 1s is just wrong); or form validation error.