In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Advanced Details Jump to Notes ] Wiki ] View Simple ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0001143 [In-Portal CMS] Data Management bug report always 2011-10-17 05:39 2012-07-25 05:33
Reporter alex View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Platform
Status closed   OS
  OS Version
ETA none Fixed in Version 5.2.0-B1 Product Version 5.1.3
  Target Version 5.2.0 Product Build
Time EstimateNo estimate
Summary 0001143: Ability to cut trailing zeros from field value being displayed
Description In-Portal has powerful number formatting engine, that allows to format numbers, stored in database in the way you need using sprintf function.

However I recently stumbled upon situation, where I need to remove trailing spaces from a formatted number, that was displayed, e.g. make "545.00" appear as "545", but keep "345.22" as is.

Patch attached gives ability to enable such behavior for any database field needed via adding "cut_zeros" option to field definition in unit config.
Steps To Reproduce
Additional Information
Tags No tags attached.
Reference https://groups.google.com/d/topic/in-portal-dev/_Qljg7CsNjc/discussion
Change Log Message Allows to cut trailing zeros from a number
Estimate Points 1
Attached Files patch file icon cut_zeros_number_formatting.patch [^] (538 bytes) 2011-10-17 05:39 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
User avatar (0004091)
Dmitry (manager)
2011-10-25 21:59

Tested good, please commit.
User avatar (0004095)
alex (manager)
2011-10-26 02:43

Fix committed to 5.2.x branch. Commit Message:

Fixes 0001143: Ability to cut trailing zeros from field value being displayed
User avatar (0005071)
alex (manager)
2012-07-25 05:33

Since 5.2.0 version was released.

- Related Changesets
In-Portal CMS: 5.2.x r14695
Timestamp: 2011-10-26 02:43:21
Author: alex
Details ] Diff ]
Fixes 0001143: Ability to cut trailing zeros from field value being displayed
mod - /in-portal/branches/5.2.x/core/kernel/utility/formatters/formatter.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2012-07-25 05:33 alex Note Added: 0005071
2012-07-25 05:33 alex Status resolved => closed
2011-10-26 02:43 alex Note Added: 0004095
2011-10-26 02:43 alex Status reviewed and tested => resolved
2011-10-26 02:43 alex Fixed in Version => 5.2.0-B1
2011-10-26 02:43 alex Resolution open => fixed
2011-10-26 02:43 alex Assigned To !COMMUNITY => alex
2011-10-26 02:43 alex Changeset attached 5.2.x r14695
2011-10-26 02:40 alex Summary Ability to cut trailing zeroes from field value being displayed => Ability to cut trailing zeros from field value being displayed
2011-10-25 21:59 Dmitry Note Added: 0004091
2011-10-25 21:59 Dmitry Status needs testing => reviewed and tested
2011-10-22 05:27 alex Estimate Points => 1
2011-10-17 06:14 alex Assigned To => !COMMUNITY
2011-10-17 06:14 alex Developer => alex
2011-10-17 06:14 alex Status active => needs testing
2011-10-17 06:14 alex Reference => https://groups.google.com/d/topic/in-portal-dev/_Qljg7CsNjc/discussion
2011-10-17 05:39 alex New Issue
2011-10-17 05:39 alex File Added: cut_zeros_number_formatting.patch
2011-10-17 05:39 alex Change Log Message => Allows to cut trailing zeros from a number



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker