ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lekt...@apache.org
Subject svn commit: r896734 - /ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/FindShipment.groovy
Date Thu, 07 Jan 2010 02:07:10 GMT
Author: lektran
Date: Thu Jan  7 02:07:09 2010
New Revision: 896734

URL: http://svn.apache.org/viewvc?rev=896734&view=rev
Log:
Change script to use the parameters map rather than the request parameters directly.  Also
removed unnecessary delegator assignment.

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

Modified: ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/FindShipment.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/FindShipment.groovy?rev=896734&r1=896733&r2=896734&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/FindShipment.groovy
(original)
+++ ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/shipment/FindShipment.groovy
Thu Jan  7 02:07:09 2010
@@ -26,15 +26,13 @@
 import org.ofbiz.base.util.*
 
 
-delegator = request.getAttribute("delegator");
-
-lookupFlag = request.getParameter("lookupFlag");
-shipmentTypeId = request.getParameter("shipmentTypeId");
-originFacilityId = request.getParameter("originFacilityId");
-destinationFacilityId = request.getParameter("destinationFacilityId");
-statusId = request.getParameter("statusId");
-minDate = request.getParameter("minDate");
-maxDate = request.getParameter("maxDate");
+lookupFlag = parameters.lookupFlag;
+shipmentTypeId = parameters.shipmentTypeId;
+originFacilityId = parameters.originFacilityId;
+destinationFacilityId = parameters.destinationFacilityId;
+statusId = parameters.statusId;
+minDate = parameters.minDate;
+maxDate = parameters.maxDate;
 
 // set the page parameters
 viewIndex = Integer.valueOf(parameters.VIEW_INDEX  ?: 0);



Mime
View raw message