Modify ↓
#753 closed defect (fixed)
Wrong comment deletion
Reported by: | Emmanuel Blot | Owned by: | Noah Kantrowitz |
---|---|---|---|
Priority: | normal | Component: | TicketDeletePlugin |
Severity: | major | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
In t:ticket:295, when the spam comment is selected for deletion, the wrong comment is selected in the admin page. See comment #17.
Attachments (0)
Change History (3)
comment:1 Changed 18 years ago by
comment:2 Changed 18 years ago by
Trac Release: | 0.9 → 0.10 |
---|
Ok, I think I understand what's going wrong, as the problem also shows up with other tickets:
Attaching a file create a ticket event in Trac. However, a new attachment is not accounted as a comment, so the comment numbering in Trac skips all attachment events.
The trouble is that the TicketDeletePlugin does not follow the same rule, it counts attachment events as regular comment events, hence the error: each file attached to a ticket produces an offset for TicketDeletePlugin.
Hope this helps.
comment:3 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Tested w/ Firefox 2.0 RC1 and Safari 2.0.4 (419.3)