Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-33507

Asset*Page classes calculate first page incorrectly

    Details

      Description

      New Asset*Display classes calculates current page using the following snippet:

      if ((_end > 0) && (_start > 0)) {
      	return _end / (_end - _start);
      }
      return 0;
      

      This fails for the page #1, since start is 0-based number. So for (start = 0, end = 20) we should get page value 1, not 0.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                michael.saechang Michael Saechang
                Reporter:
                igor.spasic Igor Spasic (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 28 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.0 CE M5