Author: mor
Date: Sat Aug 1 04:25:14 2009
New Revision: 799801
URL:
http://svn.apache.org/viewvc?rev=799801&view=revLog:
Minor changes to the script.
Modified:
ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/WeightPackage.groovy
Modified: ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/WeightPackage.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/WeightPackage.groovy?rev=799801&r1=799800&r2=799801&view=diff==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/WeightPackage.groovy (original)
+++ ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/WeightPackage.groovy Sat Aug 1 04:25:14 2009
@@ -85,6 +85,9 @@
if (!shipmentId) {
shipmentId = request.getAttribute("shipmentId");
}
+if (!shipmentId && shipment) {
+ shipmentId = shipment.shipmentId;
+}
context.shipmentId = shipmentId;
if (shipmentId) {
// Get the primaryOrderId from the shipment