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

coding error in enrol/locallib.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5.1
    • Fix Version/s: 2.5.2
    • Component/s: Enrolments
    • Labels:
    • Testing Instructions:
      Hide

      1/ create course
      2/ enrol users via different methods (both that protect and not protect the roles)
      3/ try to assign roles to other users
      4/ enrol users that got the roles only

      Show
      1/ create course 2/ enrol users via different methods (both that protect and not protect the roles) 3/ try to assign roles to other users 4/ enrol users that got the roles only
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w32_MDL-41002_m26_enroltypo

      Description

      function get_other_users_for_display()
      line 916: $changeable = !$plugin[$plugin]->roles_protected();

      should be: $changeable = !$plugins[$plugin]->roles_protected();

      otherwise you only get a blank page when going to enrol/otherusers.php?id=XXX in a course where you have assigned roles without enrolment

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              nscbrandb Bernhard Brandstetter
              Integrator:
              Sam Hemelryk
              Tester:
              Andrew Davis
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Sep/13