View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
2345 | Composr | core_fields | public | 2016-03-25 15:54 | 2016-07-04 20:08 |
Reporter | Chris Graham | Assigned To | Chris Graham | ||
Priority | normal | Severity | feature | ||
Status | resolved | Resolution | fixed | ||
Summary | 2345: Allow decimal place specification for float fields | ||||
Description | float.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. | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Time estimation (hours) | 1 | ||||
Sponsorship open | |||||
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 |