Modify ↓
Opened 16 years ago
Last modified 15 years ago
#5446 new defect
Ability to specify the comment index when updating a ticket
Reported by: | Thijs Triemstra | Owned by: | osimons |
---|---|---|---|
Priority: | normal | Component: | XmlRpcPlugin |
Severity: | major | Keywords: | |
Cc: | Thijs Triemstra | Trac Release: | 0.11 |
Description
Currently it's not possible to update/replace a specific comment in a ticket. The attached patch should solve this problem.
Attachments (1)
Change History (2)
Changed 16 years ago by
Attachment: | comment-index.patch added |
---|
comment:1 Changed 15 years ago by
Note: See
TracTickets for help on using
tickets.
The 'index' is not something returned by
ticket.changeLog()
to allow you to read it, nor is it acutally part of the database schema forticket_change
. Using the data we have, what about a new method that looks something like this:It would update the unique record (ticket,time,field) with content
newvalue
.If done like this, the method should also be accompanied by a similar
ticket.deleteChange()
method that deletes the record (using same identification mechanism).Both these methods should require
TICKET_ADMIN
permission for the resource.