View Issue Details

IDProjectCategoryView StatusLast Update
2345Composrcore_fieldspublic2016-07-04 20:08
ReporterChris Graham Assigned ToChris Graham  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Summary2345: 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.
Attach Tags
Time estimation (hours)1
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

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 Not Assigned => Resolved
2016-07-04 20:08 Chris Graham Resolution open => fixed
2016-07-04 20:08 Chris Graham Assigned To => Chris Graham