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

Manual enrolment via JavaScript doesn't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3, 2.1.4, 2.2.1
    • Fix Version/s: 2.1.6, 2.2.3
    • Component/s: Enrolments
    • Labels:
    • Environment:
      Client: Firefox 3.6.17 (Mac) or Safari 5.0.3 (Mac)
    • Testing Instructions:
      Hide

      Nothing happens now, instead JavaScript console in Safari and Firefox now says:
      TypeError: Result of expression 'this.get(UEP.BASE).one('#recovergrades')' [null] is not an object.

      Show
      Login as admin Go to http://MYMOODLEPAGE/admin/settings.php?section=cleanup Set preference "disablegradehistory" to yes Go to http://MYMOODLEPAGE/enrol/users.php?id=COURSEID Click "Enrol users" button Select role in "Assign role" select box Choose user to enrol and click "enrol" button Nothing happens now, instead JavaScript console in Safari and Firefox now says: TypeError: Result of expression 'this.get(UEP.BASE).one('#recovergrades')' [null] is not an object.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w11_MDL-27457_m23_enrolnorecover

      Description

      Manual enrolment via JavaScript fails when preference "disablegradehistory" is set to yes.
      I think the bug must be in /enrol/yui/enrolmentmanager/enrolmentmanager.js, Line 77. But as I don't know much about YUI yet, I can't provide a patch.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/12