Skip to content

Commit

Permalink
Fixes MDL-11496, SQL error when deleting a unit via the (ou) Publishe…
Browse files Browse the repository at this point in the history
…r - delete groupings.
  • Loading branch information
nfreear committed Sep 28, 2007
1 parent dafbc52 commit 5f5faac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion group/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function groups_delete_groupings($courseid, $showfeedback=false) {
// remove the default groupingid from course
set_field('course', 'defaultgroupingid', 0, 'id', $courseid);
// remove the groupingid from all course modules
set_field('course_modules', 'groupingid', 0, 'courseid', $courseid);
set_field('course_modules', 'groupingid', 0, 'course', $courseid);

delete_records('groupings', 'courseid', $courseid);
if ($showfeedback) {
Expand Down

0 comments on commit 5f5faac

Please sign in to comment.