Opened 4 years ago
Closed 4 years ago
#47953 closed defect (bug) (fixed)
Deleting a comment results in 'nbsp;' in total comments count
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Comments | Keywords: | has-screenshots |
Focuses: | administration | Cc: |
Description
Reported by @denisco.
In locales using a space as a thousands separator, it's replaced with
to avoid wrapping, see [35884] / [35951] for #10373.
In comments list table, when deleting a comment, the total comments count is updated via AJAX using jQuery .text()
function, which doesn't allow HTML. See [17354] for #15530.
Steps to reproduce:
- Switch to a language where thousands separator is a space, e.g. Russian.
- Make sure you have a thousand or more comments.
- Go to the Comments screen and delete a comment.
- In the items count you'll see
1 000 items
or similar.
The easiest solution would probably be to replace text()
with html()
. However, since this counter doesn't need any other HTML, I'm inclined to just account for the
there.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
In 45918: