Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25175

Setting incorrect pagination offset in subitems view

    Details

      Description

      Steps to reproduce:
      1. Be sure that limit for subitems list is 10 (it will be easier to test)
      2. Find folder when you have got miltiplication of the limit of children locations (for example 20 or 30) - it must be multiplication of the limit
      3. Use "Last" button of pagination for subitems list
      4. Results won't be returned, because offset has been set too high

      The reason of that is incorrect calculation for offset for last page which fails in case when total number of results is multiplication of page limit.

        Issue Links

          Activity

          Show
          Damien Pobel (Inactive) added a comment - The fix should be more or less similar to https://github.com/mhyndle/PlatformUIBundle/commit/1127f0109ae6967f16ad1b2d2c6fa5efe5af3dd1
          Show
          St├ęphane Diot added a comment - PR: https://github.com/ezsystems/PlatformUIBundle/pull/452 merged: https://github.com/ezsystems/PlatformUIBundle/commit/630851eead211d80f7e0eefbff340469ae7cd179
          Hide
          Rui Silva (Inactive) added a comment -

          Tested and approved by QA for master.

          Show
          Rui Silva (Inactive) added a comment - Tested and approved by QA for master.

            People

            • Assignee:
              Unassigned
              Reporter:
              Mateusz Hyndle (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: