Author: jonesde
Date: Wed Apr 18 11:33:22 2007
New Revision: 530120
URL:
http://svn.apache.org/viewvc?view=rev&rev=530120Log:
Small change to modernize and take advantage of things done by the screen widget; delegator will already be there, and parameters map will handle the request/session thingy
Modified:
ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/EditContactMech.bsh
ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewContactMechs.bsh
Modified: ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/EditContactMech.bsh
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/EditContactMech.bsh?view=diff&rev=530120&r1=530119&r2=530120==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/EditContactMech.bsh (original)
+++ ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/EditContactMech.bsh Wed Apr 18 11:33:22 2007
@@ -25,10 +25,7 @@
import org.ofbiz.party.contact.*;
import org.ofbiz.webapp.control.*;
-delegator = request.getAttribute("delegator");
-
-String facilityId = request.getParameter("facilityId");
-if (facilityId == null) facilityId = session.getAttribute("facilityId");
+String facilityId = parameters.get("facilityId");
context.put("facilityId", facilityId);
Map mechMap = new HashMap();
Modified: ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewContactMechs.bsh
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewContactMechs.bsh?view=diff&rev=530120&r1=530119&r2=530120==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewContactMechs.bsh (original)
+++ ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/ViewContactMechs.bsh Wed Apr 18 11:33:22 2007
@@ -22,10 +22,7 @@
context.put("nowStr", UtilDateTime.nowTimestamp());
-delegator = request.getAttribute("delegator");
-
-facilityId = request.getParameter("facilityId");
-if (facilityId == null) facilityId = session.getAttribute("facilityId");
+facilityId = parameters.get("facilityId");
facility = delegator.findByPrimaryKey("Facility", UtilMisc.toMap("facilityId", facilityId));
facilityType = null;
if (facility == null) {