Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mantis bugs that change reporter break addTicketChange() #6

Open
Aeon opened this issue Mar 28, 2017 · 0 comments
Open

mantis bugs that change reporter break addTicketChange() #6

Aeon opened this issue Mar 28, 2017 · 0 comments

Comments

@Aeon
Copy link
Member

Aeon commented Mar 28, 2017

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'

@Aeon Aeon assigned Aeon and unassigned Aeon Mar 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant