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

Enrol users screen always shows 'Select cohorts'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Enrolments
    • Labels:
    • Testing Instructions:
      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'.
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-60590_master

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17