Permalink
Browse files

MDL-34870: Prevent cohort enrol sync when updating course record

  • Loading branch information...
1 parent e6aac11 commit 6353a60ed31af154427f3424cd0ae9a9f5e461fd @aolley aolley committed Aug 14, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 enrol/cohort/lib.php
View
4 enrol/cohort/lib.php
@@ -124,9 +124,7 @@ public function course_updated($inserted, $course, $data) {
global $CFG;
if (!$inserted) {
- // sync cohort enrols
- require_once("$CFG->dirroot/enrol/cohort/locallib.php");
- enrol_cohort_sync($course->id);
+ // Let's not sync cohorts anytime a course is updated...
} else {
// cohorts are never inserted automatically
}

0 comments on commit 6353a60

Please sign in to comment.