Opened 11 years ago
Closed 11 years ago
#5245 closed defect (bug) (fixed)
bp_core_add_cropper_inline_js : float formatting conflict with javascript array
Reported by: | olivM | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 1.9 | Priority: | normal |
Severity: | normal | Version: | 1.8.1 |
Component: | Core | Keywords: | has-patch |
Cc: |
Description
with some locales ( fr_FR for exemple ) the decimal separator for floating number is the comma.
so in PHP, the result of some division can include a comma.
it will breaks the javascript arrays defined in bp_core_add_cropper_inline_js()
the fix is to round the result of the division
patch attached
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Good catch.