Author: jleroux
Date: Wed Mar 4 10:02:44 2015
New Revision: 1663912
URL:
http://svn.apache.org/r1663912Log:
A patch from Christian Carlow for "Error when updating shipment destinationFacilityId"
https://issues.apache.org/jira/browse/OFBIZ-6131The Following Errors Occurred:
Error running the simple-method: Primary key map "estimatedArrivalWorkEffortMap" not found Method = updateShipment, File = file:/home/anon/ofbiz/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml, Element = <find-by-primary-key>, Line 215null
estimatedArrivalWorkEffortMap is passed to <find-by-primary-key> but never set which causes the error.
jleroux: I was curious about this (was weird), it was missed at r889656, anyway gone...
Modified:
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml
Modified: ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml?rev=1663912&r1=1663911&r2=1663912&view=diff==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml Wed Mar 4 10:02:44 2015
@@ -212,7 +212,6 @@ under the License.
</or>
</condition>
<then>
- <find-by-primary-key entity-name="WorkEffort" map="estimatedArrivalWorkEffortMap" value-field="estimatedArrivalWorkEffort"/>
<entity-one entity-name="WorkEffort" value-field="estimatedArrivalWorkEffort" auto-field-map="false">
<field-map field-name="workEffortId" from-field="lookedUpValue.estimatedArrivalWorkEffId"/>
</entity-one>