Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-46452

Unable to enrol students from a cohort into a course

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.7.1
    • Enrolments, JavaScript
    • MOODLE_27_STABLE

      I encountered a JS error while attempting to enrol the users of a cohort into a course.

      Replication steps:

      1. Log in as an admin
      2. Create a system cohort and enrol a couple of students
      3. Create a course
      4. Go to the enrolled users page of the course and click "Enrol cohort" button at the top.
      5. In the dialogue that opens click the "Enrol Users" button for the cohort you created earlier.

      Expected result: The users in the cohort are enrolled in the course.

      Actual result:

      Y.Node.one(...) is null
      File: http://integration.local/theme/yui_combo.php?m/1405894171/enrol_cohort/quickenrolment/quickenrolment-debug.js
      Line: 295
       
      Stack trace:
       
      ln: 37
      http://integration.local/theme/yui_combo.php?m/140
      CONTROLLER.prototype.enrolCohort/<.on.complete
      ln: 21
      http://integration.local/theme/yui_combo.php?rollup
      Y.Subscriber.prototype._notify
      ln: 13
      http://integration.local/theme/yui_combo.php?rollup
      Y.Subscriber.prototype.notify
      ln: 9
      http://integration.local/theme/yui_combo.php?rollup
      Y.CustomEvent.prototype._notify
      ln: 1
      http://integration.local/theme/yui_combo.php?rollup
      Y.CustomEvent.prototype._procSubs
      ln: 13
      http://integration.local/theme/yui_combo.php?rollup
      Y.CustomEvent.prototype.fireSimple
      ln: 17
      http://integration.local/theme/yui_combo.php?rollup
      Y.CustomEvent.prototype._fire
      ln: 13
      http://integration.local/theme/yui_combo.php?rollup
      ET.prototype.fire
      ln: 13
      http://integration.local/theme/yui_combo.php?rollup
      IO.prototype._evt
      ln: 9
      http://integration.local/theme/yui_combo.php?rollup
      IO.prototype.complete
      ln: 17
      http://integration.local/theme/yui_combo.php?rollup
      IO.prototype._rS/<
      

            marina Marina Glancy
            samhemelryk Sam Hemelryk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.