Openbravo Issue Tracking System - Retail Modules
View Issue Details
0043882Retail ModulesWeb POSpublic2020-04-27 19:322020-04-28 12:10
caristu 
alostale 
highmajorhave not tried
closedfixed 
5
 
 
caristu
No
0043882: It is possible to generate duplicated elements in collection properties of backward compatible state models
It is possible to generate duplicated elements in collection properties of backward compatible state models.

This happens when we have a backward state model that:

1) Has a collection property (ex. Ticket -> lines)
2) The collection property has a listener when adding elements
3) The listener invokes a "resetEvent"

Under these circumstances, when adding a new item on the collection property it is being added twice.
Execute the attached test case which builds the described scenario. Note that it fails because it expects that just one line is added.
No tags attached.
diff testIssue43882.diff (1,726) 2020-04-27 19:39
https://issues.openbravo.com/file_download.php?file_id=14403&type=bug
Issue History
2020-04-27 19:32caristuNew Issue
2020-04-27 19:32caristuAssigned To => Retail
2020-04-27 19:32caristuTriggers an Emergency Pack => No
2020-04-27 19:38caristuDescription Updatedbug_revision_view_page.php?rev_id=20898#r20898
2020-04-27 19:39caristuFile Added: testIssue43882.diff
2020-04-28 12:09caristuStatusnew => scheduled
2020-04-28 12:09caristuAssigned ToRetail => alostale
2020-04-28 12:09caristuNote Added: 0119461
2020-04-28 12:09caristuStatusscheduled => resolved
2020-04-28 12:09caristuResolutionopen => fixed
2020-04-28 12:10caristuReview Assigned To => caristu
2020-04-28 12:10caristuStatusresolved => closed

Notes
(0119461)
caristu   
2020-04-28 12:09   
Fixed with MR: https://gitlab.com/openbravo/projects/retail/pmods/org.openbravo.mobile.core/-/merge_requests/15 [^]