svn commit: r1661977 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1661977 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml

jleroux@apache.org
Author: jleroux
Date: Tue Feb 24 15:21:38 2015
New Revision: 1661977

URL: http://svn.apache.org/r1661977
Log:
The real reason of the recent issue while loading demo data was due to r1661612, reverts it here and will reopen OFBIZ-5027

I guess it's due to
require-new-transaction="true"
when calling createProductFacility service, not sure why it was needed

Modified:
    ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml?rev=1661977&r1=1661976&r2=1661977&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml Tue Feb 24 15:21:38 2015
@@ -1274,16 +1274,6 @@ under the License.
         <entity-one value-field="inventoryItem" entity-name="InventoryItem"  auto-field-map="false">
             <field-map field-name="inventoryItemId" from-field="parameters.inventoryItemId"/>
         </entity-one>
-        <if-not-empty field="inventoryItem">
-            <set field="facilityId" from-field="inventoryItem.facilityId"/>
-            <set field="productId" from-field="inventoryItem.productId"/>
-            <entity-one value-field="productFacility" entity-name="ProductFacility"/>
-            <if-empty field="productFacility">
-                <set field="createProductFacilityMap.facilityId" from-field="facilityId"/>
-                <set field="createProductFacilityMap.productId" from-field="productId"/>
-                <call-service service-name="createProductFacility" in-map-name="createProductFacilityMap" require-new-transaction="true"/>
-            </if-empty>
-        </if-not-empty>
         <entity-and list="productFacilities" entity-name="ProductFacility">
             <field-map field-name="productId" from-field="inventoryItem.productId" />
         </entity-and>