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

Unable to enrol students from a cohort into a course

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.7.1
    • Fix Version/s: None
    • Component/s: Enrolments, JavaScript
    • Labels:
    • Affected Branches:
      MOODLE_27_STABLE

      Description

      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/<
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              samhemelryk Sam Hemelryk
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: