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

ModelForm.getOverrideListSize fails to convert to integer when value > 1000

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • Trunk
    • Trunk
    • ALL COMPONENTS
    • None

    Description

      The getOverrideListSize uses FlexibleStringExpander to get the list size but depending on the object type will depend on the value returned and how big the number value is

      e.g
      override-list-size="${listSize}"

      when listSize is a number and more than 1000, the returned value is 1,000
      when listSize is a string and more than 1000, it returns 1000.

      Looking at NumberConverters, it always uses NumberFormat. For this scenario, you do need to format the number

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            gareth.carter Gareth Carter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment