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

Incorrect pagination when there are exactly 12 courses

XMLWordPrintable

    • MOODLE_36_STABLE
    • MOODLE_36_STABLE
    • MDL-64194-37_block_myoverview_incorrect_pagination
    • 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.

      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)

       

            tom_d Tom Dickman
            sarjona Sara Arjona (@sarjona)
            Dmitrii Metelkin Dmitrii Metelkin
            Jake Dallimore Jake Dallimore
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            4 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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