-
Bug
-
Resolution: Fixed
-
Minor
-
2.4, 2.5
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MDL-39692-master -
-
-
BACKEND Sprint 18
Hi,
Having the following Letter > Boundary on a course (overriding site default):
Highest | Lowest | Letter |
---|---|---|
100.00 % | 93.00 % | A |
92.99 % | 90.00 % | A- |
89.99 % | 87.00 % | B+ |
86.99 % | 83.00 % | B |
82.99 % | 80.00 % | B- |
79.99 % | 77.00 % | C+ |
76.99 % | 73.00 % | C |
72.99 % | 70.00 % | C- |
69.99 % | 67.00 % | D+ |
66.99 % | 60.00 % | D |
59.99 % | 30.00 % | E |
29.99 % | 0.00 % | F |
I want to delete the "E" letter:
- Go into "Edit grade letters"
- Select "Unused" for the E Letter grade boundary
- Click "Save changes"
EXPECTED BEHAVIOR
E is delete and F have now boundary from 59.99 to 0
ACTUAL BEHAVIOR
Error message "Error writing to database".
In the PHP log, we have :
[15-May-2013 14:14:08 America/New_York] Default exception handler: Erreur d'écriture vers la base de données Debug: Duplicate entry '660-0.00000-F' for key 'mdl_gradlett_conlowlet_uix'
|
UPDATE mdl_grade_letters SET letter = ?,lowerboundary = ?,contextid = ? WHERE id=?
|
[array (
|
0 => 'F',
|
1 => 0,
|
2 => '660',
|
3 => 90,
|
)]
|
Error code: dmlwriteexception
|
* line 426 of \lib\dml\moodle_database.php: dml_write_exception thrown
|
* line 1195 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
|
* line 1227 of \lib\dml\mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->update_record_raw()
|
* line 179 of \grade\edit\letter\index.php: call to mysqli_native_moodle_database->update_record()
|
- blocks
-
MDL-20367 Grade Scales - Currently, only integers can be specified as letter grade boundaries when creating a grade scale. Provide the ability to specify a real number.
-
- Closed
-
- will be (partly) resolved by
-
MDL-48189 Add behat tests for overriding of grade letters
-
- Closed
-
- will help resolve
-
MDL-20367 Grade Scales - Currently, only integers can be specified as letter grade boundaries when creating a grade scale. Provide the ability to specify a real number.
-
- Closed
-