-
Bug
-
Resolution: Fixed
-
Critical
-
1.9.13, 2.0.3, 2.1, 2.2
-
Ubuntu server 10.04 amd64 bit, RHE 6.1,
-
MySQL
-
MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
-
MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE
-
w33_
MDL-27248_m22_catsort -
Debug info: Duplicate entry '13-20021' for key 'category_sortorder'
UPDATE mdl_course
SET sortorder = sortorder + 1
WHERE category = ?
[array (
0 => '13',
)]
Stack trace:
- line 394 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 703 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1095 of /lib/datalib.php: call to mysqli_native_moodle_database->execute()
- line 3817 of /course/lib.php: call to fix_course_sortorder()
- line 135 of /course/edit.php: call to update_course()