insighty / openesignforms

Automatically exported from code.google.com/p/openesignforms
0 stars 0 forks source link

Adding fields to newly added party before save causes terminal error #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add new party OK
2. Return to newly added party to include accessible fields, OK causes terminal 
problem.

What is the expected output? What do you see instead?
Fields associated to party saved.  
Work around is to do save after adding party, or do include associated fields 
before OK.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by toni.yoz...@gmail.com on 13 May 2011 at 7:56

GoogleCodeExporter commented 8 years ago
Fixed in 0.9.6

The code simply added the party as if it were a new party based on whether the 
object had been written to disk or not. So if any two operations took place on 
the party without a Save, the party was added to the list twice, creating a 
duplicate key issue. We now only add a new party if it's not been written to 
disk AND its not already in our new party list.

Original comment by yoz...@gmail.com on 13 May 2011 at 10:21