Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5422

htmlFormMacroLibrary.ftl renderNextPrev does not calculate number of pages correctly

    XMLWordPrintableJSON

Details

    Description

      There are 2 issues with the existing code.

      1 - floor is applied to viewSize only not the computed value
      2 - if the listSize divides with viewSize evenly, you'll get one extra

      eg

      24/2=12 - no of pages = 13
      24/5=4.8 - no of pages = 5

      Attachments

        1. htmlFormMacroLibrary.patch
          1 kB
          Gareth Carter

        Activity

          People

            jleroux Jacques Le Roux
            gareth.carter Gareth Carter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: