Modify ↓
Opened 18 years ago
Closed 8 years ago
#1502 closed defect (wontfix)
mantis bugs that change reporter break addTicketChange()
Reported by: | Owned by: | Anton Stroganov | |
---|---|---|---|
Priority: | normal | Component: | MantisImportScript |
Severity: | minor | Keywords: | reporter, reporter_id |
Cc: | Trac Release: | 0.10 |
Description
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'
Attachments (0)
Note: See
TracTickets for help on using
tickets.
New version of plugin is on GitHub. Please open a new ticket if you have an issue with the new version.