Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 6353a60ed31af154427f3424cd0ae9a9f5e461fd 1 parent e6aac11
Adam Olley aolley authored

Showing 1 changed file with 1 addition and 3 deletions. Show diff stats Hide diff stats

  1. +1 3 enrol/cohort/lib.php
4 enrol/cohort/lib.php
@@ -124,9 +124,7 @@ public function course_updated($inserted, $course, $data) {
124 124 global $CFG;
125 125
126 126 if (!$inserted) {
127   - // sync cohort enrols
128   - require_once("$CFG->dirroot/enrol/cohort/locallib.php");
129   - enrol_cohort_sync($course->id);
  127 + // Let's not sync cohorts anytime a course is updated...
130 128 } else {
131 129 // cohorts are never inserted automatically
132 130 }

0 comments on commit 6353a60

Please sign in to comment.
Something went wrong with that request. Please try again.