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

Changing role in cohort sync enrollment is not deleting previously selected role

    • Hhogs Merge Review Candidates

      yusufyilmaz wrote:

      I think I might find a bug in cohort sync enrollment type. When I add cohort sync enrollment to a course with a role of student, I can assign the student role for all of the cohort members ( I accidentally chose student rather than a teacher) . However, when I go to managing enrollment methods of the course and hit the edit gear button for the cohort sync enrollment and change the "assign role" from student to teacher, the cohort members are added to teacher role and kept the previously added student role. I cannot manually delete student role since the role was added by a cohort sync enrollment method.

      Only workaround that I can find so far is to delete cohort sync enrollment and add new instance for the same cohort with the desired role. But if the cohort members are done some activities in the course, this can be problematic. So I hope you have better solution for the situation.

       

      (From https://moodle.org/mod/forum/discuss.php?d=361445 )

       

      Step to reproduce:

      1. Create a cohort and assign a couple of users to it.
      2. Create a course and go to Participants > Enrolment methods.
      3. Add a Cohort sync enrolment method.
      4. Select 'Student' as role, and the cohort created and Add method.
      5. Go to Participants list and confirm the users within the cohort are enrolled as students.
      6. Create a course and go to Participants > Enrolment methods.
      7. Go to Participants > Enrolment methods and edit Cohort sync enrolment method.
      8. Confirm you could change the role from Student to any other role (e.g. Manager) and save changes using the Add method button.
      9. Go to Participants list

      Expected behavior:

      Users within cohorts are enrolled as Manager only

      Current behavior:

      Users within cohorts are enrolled as Student AND Manager

            jonof Jonathon Fowler
            sarjona Sara Arjona (@sarjona)
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 28 minutes
                28m

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