Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-698

If pageLinks is not specified in the paginator template, an error is thrown

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.3, 1.5.1, 1.6.0
    • Fix Version/s: 1.0.3, 1.6.0, 1.6.1, 1.5.3
    • Component/s: Pagination
    • Labels:
      None

      Description

      If, when creating a paginator, do not specify the

      {PageLinks}

      placeholder in the template, the paginator will throw an error.

      The reason for this is because we're doing an if check on a nodelist, but we're expecting it to be truthy. However, nodelists always return an object, so we should instead look to see if the object has a size. (Basically the if statement is always returning true).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nathan.cavanaugh Nate Cavanaugh
              Reporter:
              nathan.cavanaugh Nate Cavanaugh
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 6 weeks, 2 days ago

                  Packages

                  Version Package
                  1.0.3
                  1.6.0
                  1.6.1
                  1.5.3