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

Applied filters are lost after performing certain actions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Course, Enrolments
    • Labels:
    • Testing Instructions:
      Hide

      Test 1

      1. Create a course
      2. Go to course Participants page
      3. Enrol several students
      4. Enrol one teacher
      5. Filter by role 'Teacher'
        • make sure only one participant (teacher) is displayed
      6. Unenrol the teacher
        • after unenrolment action:
          •  make sure the filter is still present and no participants are displayed
          •  if the filter is present, make sure it's displayed by it's name (ex. Role: Teacher) and not by it's value (ex. 4:3)

      Test this scenario for all other filters (last activity filter, enrolment method, course group, status) and make sure it works.
      NOTE: For testing the last activity filter you can manually modify the timeaccess column record in the user_lastaccess tbl for one course participant to test the filter for different time ranges.

      Test 2

      1. Go to Site administration -> Development -> Make test course
      2. In the Make test course page:
        • select 'Size of course' = M (~100MB; create in ~2 minutes)
        • add a 'Course short name'
        • click 'Create course'
        • after creating the course click 'Continue'
      3. Go to the course's 'Participants' page
      4. Filter by role 'Student'
      5. Filter by First name, Surname
        • make sure filtering works and the 'Student' role filter is still present
      6. Click on the pagination links
        • make sure that the pagination works correctly and all filters are sill present
      Show
      Test 1 Create a course Go to course Participants page Enrol several students Enrol one teacher Filter by role 'Teacher' make sure only one participant (teacher) is displayed Unenrol the teacher after unenrolment action:   make sure the filter is still present and no participants are displayed   if the filter is present, make sure it's displayed by it's name (ex. Role: Teacher) and not by it's value (ex. 4:3) Test this scenario for all other filters (last activity filter, enrolment method, course group, status) and make sure it works. NOTE : For testing the last activity filter you can manually modify the timeaccess column record in the user_lastaccess tbl for one course participant to test the filter for different time ranges. Test 2 Go to Site administration -> Development -> Make test course In the Make test course page: select 'Size of course' = M (~100MB; create in ~2 minutes) add a 'Course short name' click 'Create course' after creating the course click 'Continue' Go to the course's 'Participants' page Filter by role 'Student' Filter by First name, Surname make sure filtering works and the 'Student' role filter is still present Click on the pagination links make sure that the pagination works correctly and all filters are sill present
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-60579-master

      Description

      To reproduce:

      1. Enrol one or more users to a course C1.
      2. Apply one or more filters. Make sure that at least one participant is returned.
      3. Unenrol a user listed in the filtered participants.
      4. Expected
        • The applied filters will still be applied after the page has refreshed.
      5. Actual
        • The applied filters are lost after performing the enrolment action

      The same happens when filtering by first/last name and also with paging.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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