Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-413

Error in number formatting in case if thousands separator not specified

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.2-B1
    • Fix Version/s: 5.0.3-B1
    • Component/s: Data Management
    • Labels:
      None

      Description

      It appears, that number_format function seems to use "," as thousands separator even in case if thousands separator is not entered in language properties. By inspecting closely I've discovered, that ThousandsSep field in Language table has NULL value in case if empty value is entered in language properties. When NULL is given to number_format function, then is works as "," instead.

      To fix this problem I propose to force type convert (to string) both decimal and thousands separator before passing them to number_format function.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: