Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.3.1
-
Component/s: Quiz
-
Testing Instructions:
-
Affected Branches:MOODLE_33_STABLE
-
Fixed Branches:MOODLE_33_STABLE, MOODLE_34_STABLE
-
Pull from Repository:
-
Pull Master Branch:
-
Pull Master Diff URL:
Description
Description
MoodleQuiz bug found in v3.3.1: If you enter 'nothing' by using the space bar in 'Maximum grade' in MoodleQuiz on the Editing quiz page, and then press 'Save', the page will return the error " Error writing to database".
Not a big issue as an admin or manager is unlikely to do this, but would expect an "Error, numerical value required" to pop up, or for a null value to be translated to '0.00'.
Step to reproduce # Login as Admin/Manager to course.
- Create/Add new MoodleQuiz activity.
- on Quiz page, click Edit Quiz.
- on Edit quiz, delete value default on Maximum grade field, and add a space or spaces using the keyboard space bar.
- Save.
- Observe result: error "Error writing to database".