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

Make "kFormatter::TypeCast" support floating point numbers with 0 precision

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Scheduled
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.2.2
    • Component/s: Data Management
    • Labels:
      None
    • Change Log Group:
      Fixed
    • Change Log Message:
      Fixed cases, when floating point numbers with zero precision weren't saved to the database due to a validation error.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      1. for the "kFormatter" class:
        1. extract logic, that is handling "cut_zeros" field option into a dedicated private "cutZeros" method
        2. in the "\kFormatter::TypeCast" method, when comparing "$tc_value" with "$value" wrap both variables with the "cutZeros" method call

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h