Moodle
  1. Moodle
  2. MDL-26560

Error message when enrolling and unenrolling users and enrolment methods and roles don't seem to synchronize

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.3
    • Component/s: Enrolments
    • Labels:
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Rank:
      16324

      Description

      Hi there,

      I have one of the early releases of Moodle 2.0.1 installed and came across the following error. I've been testing enrolment and unenrolment. I don't know exactly at what point this error occurred but when adding and deleting roles I got the following error message:

      TypeError: 'panel.user' is null or not an object.

      The other thing that I noticed is if I enroll a user that is already self enrolled, again manually, another enrolment method for the same role comes up. Also, the roles don't seem to synchronize with enrolment methods. If I delete all the roles the user stills seems to be enrolled into the course.

      Thanks
      Tina

        Activity

        Hide
        Nikhil Gupta added a comment -

        yes i got the same error,when i clicked on the "" sign to enroll the user whose enrollment has been removed by clicking on cross sign,and again when i click on the same "" sign it shows this.

        Show
        Nikhil Gupta added a comment - yes i got the same error,when i clicked on the " " sign to enroll the user whose enrollment has been removed by clicking on cross sign,and again when i click on the same " " sign it shows this.
        Hide
        Sam Hemelryk added a comment -

        Thanks for filing this issue Tina, I've created a patch for it and it is going to be reviewed and hopefully integrated this week.

        The patch I have created fixes the panel.user issues that you were experiencing.
        In regards to roles and enrolments they are both separate concepts, although on this one page you can both manage enrolments and manage roles.
        It is also a feature that a user can have more than one enrolment in a course, through this means you can better control the users access to a course without having to make changes in other systems.

        Cheers
        Sam

        Show
        Sam Hemelryk added a comment - Thanks for filing this issue Tina, I've created a patch for it and it is going to be reviewed and hopefully integrated this week. The patch I have created fixes the panel.user issues that you were experiencing. In regards to roles and enrolments they are both separate concepts, although on this one page you can both manage enrolments and manage roles. It is also a feature that a user can have more than one enrolment in a course, through this means you can better control the users access to a course without having to make changes in other systems. Cheers Sam

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: