Anonymous | Login | Signup for a new account | 2023-05-31 05:59 CDT | ![]() |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Viewing Issue Simple Details [ Jump to Notes ] [ Wiki ] | [ View Advanced ] [ 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 | Fixed in Version | 5.2.0-B1 | ||
Status | closed | Product Version | 5.1.3 | Target Version | 5.2.0 | ||
Time Estimate | No 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. |
||||||
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 |
![]() |
||||||
|
![]() |
|
![]() |
|
![]() Dmitry (manager) 2011-10-25 21:59 |
Tested good, please commit. |
![]() 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 |
![]() alex (manager) 2012-07-25 05:33 |
Since 5.2.0 version was released. |
![]() |
|||
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 ] | ||
![]() |
|||
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 |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic![]() In-Portal Open Source CMS |