If 2 users submit a claim on a node and I decline the first, then accept the second I get the following error:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '34-149' for key 1: UPDATE {nodeownership} SET uid=:db_update_placeholder_0 WHERE (nid = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => 34 [:db_condition_placeholder_0] => 149 ) in _node_claim_process() (line 416 of /websites/onedge/modules/nodeownership/nodeownership.module).
Comments
Comment #1
SomethingOn commentedIt looks like the code on line 411 through 416 is totally unnecessary:
Comment #2
gauravkumar87 commentedComment #3
gauravkumar87 commentedFix committed to the latest dev snapshot. Yogesh, please verify.
Gaurav
Comment #4
yogeshchaugule8 commentedworks as expected