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 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

        1. MDL-64194.jpg
          43 kB
          Anna Carissa Sadia
        2. MDL-64194 (2).jpg
          39 kB
          Anna Carissa Sadia

          Issue Links

            Activity

              People

              Assignee:
              tom_d Tom Dickman
              Reporter:
              sarjona Sara Arjona (@sarjona)
              Peer reviewer:
              Dmitrii Metelkin
              Integrator:
              Jake Dallimore
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              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