Opened 10 years ago
mantis bugs that change reporter break addTicketChange()
|Reported by:||brian@…||Owned by:||codeFiend|
I have a mantis issue that i changed the reporter on as part of the history. The log messages complain that "The bug id, field name, and time must be unique", but that's not the problem.
The field in addTicketChange() is reporter_id. This sql is executed,
sql = "UPDATE ticket SET %s='%s' WHERE id=%s" % (field, newvalue, ticket)
but ticket doesn't have that column.
I'm guessing it's throwing some exception. Unfortunately convert is catching everything on line 813 (please fix).
A fix that worked for me is this code near line 781
elif field_name == 'reporter_id':
ticketChangefield? = 'reporter'