Opened 16 years ago
Closed 15 years ago
#1370 closed defect (bug) (fixed)
'Right Now' dashboard cuts totals short when the locale puts commas in numbers eg. 2,345
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 1.0.3 | Priority: | normal |
| Severity: | normal | Version: | 1.0.2 |
| Component: | General - Administration | Keywords: | has-patch |
| Cc: |
Description
As in the summary, if you've got, say 2345 users and your locale (UK in my case) formats that number as 2,345 then the 'Right Now' dashboard widget will report 2 users, cutting off everything after the comma. This is caused by attempting to format the value as a number - %d - which is expecting an integer.
I've attached a patch that uses the %s formatter instead and therefore corrects the bug.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Looks good to me.