Unexpected output: Affected paths: relative - resubmit patch.
⚙ D56 INP-1417 - Cut trailing zeros properly
Page MenuHomeIn-Portal Phabricator

INP-1417 - Cut trailing zeros properly
ClosedPublic

Authored by alex on Apr 2 2015, 10:38 AM.

Details

Test Plan
  1. locate any grid, that has a column, where decimal numbers are displayed (e.g. list of products)
  2. add 'cut_zeros' => 1 option to field definition, that is displayed in that column
  3. confirm, that (, is thousands separator, . is decimal separator):
    • db value 1234.05 is shown as 1,234.05
    • db value 1234.00 is shown as 1,234
    • db value 1230 is shown as 1,230
    • db value 1234.50 is shown as 1234.5 (this wasn't working before)

Diff Detail

Repository
rINP In-Portal
Branch
/in-portal/branches/5.2.x
Lint
Lint OK
Unit
No Unit Test Coverage

Event Timeline

alex updated this revision to Diff 150.Apr 2 2015, 10:38 AM
alex retitled this revision from to INP-1417 - Cut trailing zeros properly.
alex updated this object.
alex edited the test plan for this revision. (Show Details)
alex added 1 JIRA issue(s): INP-1417.
glebs accepted this revision.May 21 2015, 2:23 AM
glebs edited edge metadata.
This revision is now accepted and ready to land.May 21 2015, 2:23 AM
This revision was automatically updated to reflect the committed changes.
alex edited edge metadata.Mar 10 2016, 6:14 AM
alex added a project: Restricted Project.