Author: swapnilmmane
Date: Fri Apr 19 14:05:59 2019
New Revision: 1857813
URL:
http://svn.apache.org/viewvc?rev=1857813&view=revLog:
Fixed: If the picklist cancelation process failed, the picklist item shouldn't be marked as cancel
(OFBIZ-4690)
When a transaction is running in which Picklist entity is updated (i.e. canceled), now if the transaction is rollback the picklist status will not be changed but as per previous code, the picklist item's status will get updated i.e. marked as cancel because we called the cancelPicklistAndItems service in async mode
So the situation here was the Picklist is not canceled, but the Picklist items were marked as cancel.
Thus to fix it, call the cancelPicklistAndItems service in sync mode.
Thanks: Jacques Le Roux for your thoughts.
Modified:
ofbiz/ofbiz-framework/trunk/applications/product/entitydef/eecas.xml
Modified: ofbiz/ofbiz-framework/trunk/applications/product/entitydef/eecas.xml
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/entitydef/eecas.xml?rev=1857813&r1=1857812&r2=1857813&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/product/entitydef/eecas.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/product/entitydef/eecas.xml Fri Apr 19 14:05:59 2019
@@ -73,7 +73,7 @@ under the License.
<!-- If the Picklist status is Cancelled then cancel all the PicklistItems -->
<eca entity="Picklist" operation="create-store" event="return">
<condition field-name="statusId" operator="equals" value="PICKLIST_CANCELLED"/>
- <action service="cancelPicklistAndItems" mode="async"/>
+ <action service="cancelPicklistAndItems" mode="sync"/>
</eca>
<!-- Product GroupOrder ECAs -->