View Issue Details

IDProjectCategoryView StatusLast Update
0002345Composrcore_fieldspublic2016-07-04 20:08
ReporterChris GrahamAssigned ToChris Graham 
SeverityFeature-request 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0002345: Allow decimal place specification for float fields
Descriptionfloat.php has this code:
        $ev = float_format(floatval($ev));

It would be nice if field options could be used to determine what exact parameters are used with our float_format function.

This is important for price fields, as those must have exactly 2dp or 0dp. You can't reasonably just use a short_text field for a price field, because user's may put in nonsense and also sorting will break.

Come to think of it, we probably need a flag to have price display logic, so it shows 0dp if there's no decimal component, or 2dp if there is.
TagsNo tags attached.
Time estimation (hours)1
Sponsorship open

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2016-03-25 15:54 Chris Graham New Issue
2016-07-04 20:08 Chris Graham Status non-assigned => resolved
2016-07-04 20:08 Chris Graham Resolution open => fixed
2016-07-04 20:08 Chris Graham Assigned To => Chris Graham