Skip to content

mantis bugs that change reporter break addTicketChange() #6

@Aeon

Description

@Aeon

On 1-May-2007, at 8:43am, brian wrote (Trac issue 1502):

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':
ticketChange['field'] = 'reporter'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions