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

Incorrect pagination when there are exactly 12 courses

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create 13 courses for testing
      2.  Create a user and enrol in all 13 courses
      3.  Log in as created user and navigate to 'Dashboard'
      4.  Check 'Course Overview' still displays the previous and next arrows at the bottom for pagination when 'Show' option is set to 12, and that the next button is clickable
      5.  Select one of the course cards via its settings button and select 'Hide from view' (you should now have exactly 12 courses displayed)
      6. Refresh the page
      7.  Check that the next and previous arrows have now been hidden when exactly 12 courses are available and 'Show' option is set to 12.
      8.  Repeat same process using 25 courses for the 24 course pagination option.
      Show
      Create 13 courses for testing  Create a user and enrol in all 13 courses  Log in as created user and navigate to 'Dashboard'  Check 'Course Overview' still displays the previous and next arrows at the bottom for pagination when 'Show' option is set to 12, and that the next button is clickable  Select one of the course cards via its settings button and select 'Hide from view' (you should now have exactly 12 courses displayed) Refresh the page  Check that the next and previous arrows have now been hidden when exactly 12 courses are available and 'Show' option is set to 12.  Repeat same process using 25 courses for the 24 course pagination option.
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull from Repository:
    • Pull 3.6 Branch:
      MDL-64194-36_block_myoverview_incorrect_pagination
    • Pull Master Branch:
      MDL-64194-37_block_myoverview_incorrect_pagination

      Description

      Steps to reproduce:

      • Enrol user1 in exactly 12 courses.
      • Access to the Dashboard and make sure '12' is selected in the 'Show' list.

      Expected result:

      The arrows for moving to the next page shouldn't appear.

      Current result:

      The arrows for moving to the next page appear. If you click on it, you'll see an empty page (because the user is enrolled in exactly 12 courses)

       

        Attachments

          Activity

            People

            • Votes:
              4 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/May/19

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 45 minutes
                2h 45m