Closed (duplicate)
Project:
Support Ticketing System
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2009 at 17:41 UTC
Updated:
16 Nov 2010 at 16:19 UTC
I updated to version 6.x-1.2 (before i was passed by version 6.x-1.2-rc1) and now, when a try to check a new "subscribed" editing a ticket, I receive the follow message:
user warning: Duplicate entry '12' for key 'PRIMARY' query: INSERT INTO support_ticket (nid, message_id, state, priority, client, assigned) VALUES(12, '', 1, 4, 1, 4) in G:\xampp\htdocs\intranet\sites\all\modules\support\support.module on line 637.
Other updates are allowed, but adding "subscribed". I guess the code should be "UPDATE support_ticket ..." instead of "INSERT INTO support_ticket", should not?
Please, help me.
Thanks.
Luciano Gomes
Comments
Comment #1
jeremy commentedThe line before that in the code does do an UPDATE, and the INSERT only happens if the UPDATE fails. I don't see any valid reason that the UPDATE would fail that would then result in the INSERT causing this error.
What database are you using? What OS?
Does this affect all tickets, or just one specific ticket?
Is there anything non-standard about your installation?
Comment #2
jeremy commentedNo further feedback, closing ticket.
Comment #4
rsevero commentedI believe this is a duplicate of #708880: Duplicate entry '3' for key 'PRIMARY' query: INSERT INTO support_ticket.