OpenESignForms / openesignforms

Open eSignForms is the first open source SaaS web contracting platform
https://open.esignforms.com
107 stars 50 forks source link

Deleting a field template in a document version used by a party causes "discard/save" dialog #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a document version that includes a field that is assigned to a party 
for edit.
2. Delete the field template.
3. Save the document version.
4. Navigate away to another document version.

What is the expected output? What do you see instead?
It should just navigate nicely, but instead it prompts for a Discard/Save to be 
done, even though we clicked Save and got no error.

Original issue reported on code.google.com by yoz...@gmail.com on 27 Sep 2011 at 1:48

GoogleCodeExporter commented 9 years ago
Discovered errors like this in the app log:

(com.esignforms.open.prog.PartyTemplateFieldTemplate) save(con) - Update failed 
for partyTemplateId: 193d86d2-af4c-4c02-b0a8-78812abd95f1; fieldTemplateId: 
d5c1a775-2064-49d4-90d5-66feb40e1fd9

Research shows that the field template id specified was in fact a field 
template that had been deleted. It appears the party is still holding a 
reference.

Original comment by yoz...@gmail.com on 27 Sep 2011 at 1:50

GoogleCodeExporter commented 9 years ago
When a field can be updated by a party, there's a mapping that was not being 
updated when the field was deleted. This resulted in the error message. 
However, the code was deleting the actual database mapping, so once the object 
was reloaded fresh from the database, it would appear to be correct again.

The code in the patch release 11.9.10_26 should have this installed. It'll also 
be in the next pending release that we hope will go out this week.

Original comment by yoz...@gmail.com on 27 Sep 2011 at 1:55