Skip to content

Commit

Permalink
MDL-34870: Prevent cohort enrol sync when updating course record
Browse files Browse the repository at this point in the history
  • Loading branch information
aolley committed Aug 14, 2012
1 parent e6aac11 commit 6353a60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions enrol/cohort/lib.php
Expand Up @@ -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
}
Expand Down

0 comments on commit 6353a60

Please sign in to comment.