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

Enrol users screen always shows 'Select cohorts'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.4
    • 3.4
    • Enrolments
    • MOODLE_34_STABLE
    • MOODLE_34_STABLE
    • MDL-60590_master
    • Hide
      Test 1
      1. Ensure your site has no cohorts.
      2. Log in as the admin.
      3. Create a course.
      4. Go to the participants page for that course.
      5. Confirm when you click on 'Enrol users' a select box for 'Select cohorts' is not shown in the form.
      6. Confirm the submit button just says 'Enrol users'.
      Test 2
      1. Add cohorts to your site.
      2. Create a course.
      3. Enrol a user as a teacher.
      4. Unset the permission 'moodle/cohort:view' for the teacher role.
      5. Log in as the teacher.
      6. Go to the participants page for that course.
      7. Confirm when you click on 'Enrol users' a select box for 'Select cohorts' is not shown in the form.
      8. Confirm the submit button just says 'Enrol users'.
      Test 3
      1. Add a cohort to your site.
      2. Log in as the admin.
      3. Go to the participants page for that course.
      4. Confirm when you click on 'Enrol users' a select box for 'Select cohorts' is shown in the form.
      5. Confirm the submit button says 'Enrol selected users and cohorts'.
      Show
      Test 1 Ensure your site has no cohorts. Log in as the admin. Create a course. Go to the participants page for that course. Confirm when you click on 'Enrol users' a select box for 'Select cohorts' is not shown in the form. Confirm the submit button just says 'Enrol users'. Test 2 Add cohorts to your site. Create a course. Enrol a user as a teacher. Unset the permission 'moodle/cohort:view' for the teacher role. Log in as the teacher. Go to the participants page for that course. Confirm when you click on 'Enrol users' a select box for 'Select cohorts' is not shown in the form. Confirm the submit button just says 'Enrol users'. Test 3 Add a cohort to your site. Log in as the admin. Go to the participants page for that course. Confirm when you click on 'Enrol users' a select box for 'Select cohorts' is shown in the form. Confirm the submit button says 'Enrol selected users and cohorts'.

      We don't use Cohorts in our Moodle instance, but I notice in 3.4 that it is always present on the Enrol Users screen. 

      It is not an enrolment method for the course, we also don't have any system cohorts defined, and I removed all cohort permissions from the user I was testing. But the option remained. 

      Also, after I removed the permission, it throws an error when I attempt to click the search drop-down box.

            markn Mark Nelson
            mcwoods Michael Woods
            Mihail Geshoski Mihail Geshoski
            Damyon Wiese Damyon Wiese
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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