svn commit: r775624 - /ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/EditShipmentRouteSegments.groovy

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

svn commit: r775624 - /ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/EditShipmentRouteSegments.groovy

mor-2
Author: mor
Date: Sun May 17 10:58:36 2009
New Revision: 775624

URL: http://svn.apache.org/viewvc?rev=775624&view=rev
Log:
Fixed "No Shipment Found" on route segment screen even when a shipment do exists.
Reported by Arun Patidar and patch from Pranay Pandey, part of OFBIZ-2482 (https://issues.apache.org/jira/browse/OFBIZ-2482)

Modified:
    ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/EditShipmentRouteSegments.groovy

Modified: ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/EditShipmentRouteSegments.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/EditShipmentRouteSegments.groovy?rev=775624&r1=775623&r2=775624&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/EditShipmentRouteSegments.groovy (original)
+++ ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/EditShipmentRouteSegments.groovy Sun May 17 10:58:36 2009
@@ -18,6 +18,7 @@
  */
 
 import org.ofbiz.base.util.*
+import org.ofbiz.entity.condition.EntityCondition;
 
 shipmentId = request.getParameter("shipmentId");
 if (!shipmentId) {
@@ -25,7 +26,7 @@
 }
 
 shipment = null;
-if (!shipmentId) {
+if (shipmentId) {
     shipment = delegator.findOne("Shipment", [shipmentId : shipmentId], false);
 }