Modify

Opened 10 years ago

Closed 3 months ago

#1502 closed defect (wontfix)

mantis bugs that change reporter break addTicketChange()

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

Change History (1)

comment:1 Changed 3 months ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

New version of plugin is on GitHub. Please open a new ticket if you have an issue with the new version.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Anton Stroganov.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.