Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.1.1, 2.2, 2.3, 2.4
-
Component/s: Course
-
Labels:
-
Environment:RH Linux 6
-
Database:MySQL
-
Testing Instructions:
-
Affected Branches:MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
-
Fixed Branches:MOODLE_22_STABLE, MOODLE_23_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-29598_master -
Pull Master Diff URL:
Description
I am using Moodle 2.1.1 on RH6 with mysql.
Whenever the default grade letters for a course are changed and I duplicate any course content I get "Error writing to database".
In the log it shows:
Duplicate entry '209685-0.00000-F' for key 'mdl_gradlett_conlowlet_uix'
|
INSERT INTO mdl_grade_letters (lowerboundary,letter,contextid) VALUES(?,?,?)
|
[array (
|
0 => '0.00000',
|
1 => 'F',
|
2 => '209685',
|
)]
|
What can I do to correct this problem?. Is there a patch available ?
Thanks, Jose