Modify

Opened 7 years ago

#1502 new defect

mantis bugs that change reporter break addTicketChange()

Reported by: brian@… Owned by: codeFiend
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)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.