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 87e9331 commit 238a7b3
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; global $CFG;


if (!$inserted) { if (!$inserted) {
// sync cohort enrols // Let's not sync cohorts anytime a course is updated...
require_once("$CFG->dirroot/enrol/cohort/locallib.php");
enrol_cohort_sync($course->id);
} else { } else {
// cohorts are never inserted automatically // cohorts are never inserted automatically
} }
Expand Down

0 comments on commit 238a7b3

Please sign in to comment.