You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "David E. Jones" <jo...@undersunconsulting.com> on 2007/04/03 03:09:00 UTC

Re: svn commit: r524942 - /ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/FindFacilityLocation.bsh

Wouldn't it fix this to just use "facilityId = parameters.get 
("facilityId");" ?

Also when running through the screen widget that delegator line and  
other general context object lines can go away.

-David


On Apr 2, 2007, at 6:06 PM, sichen@apache.org wrote:

> Author: sichen
> Date: Mon Apr  2 15:06:14 2007
> New Revision: 524942
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=524942
> Log:
> Small fix to find facility location in case facilityId is stored in  
> attribute.
>
> Modified:
>     ofbiz/trunk/applications/product/webapp/facility/WEB-INF/ 
> actions/facility/FindFacilityLocation.bsh
>
> Modified: ofbiz/trunk/applications/product/webapp/facility/WEB-INF/ 
> actions/facility/FindFacilityLocation.bsh
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/ 
> webapp/facility/WEB-INF/actions/facility/FindFacilityLocation.bsh? 
> view=diff&rev=524942&r1=524941&r2=524942
> ====================================================================== 
> ========
> --- ofbiz/trunk/applications/product/webapp/facility/WEB-INF/ 
> actions/facility/FindFacilityLocation.bsh (original)
> +++ ofbiz/trunk/applications/product/webapp/facility/WEB-INF/ 
> actions/facility/FindFacilityLocation.bsh Mon Apr  2 15:06:14 2007
> @@ -26,6 +26,7 @@
>  delegator = request.getAttribute("delegator");
>
>  facilityId = request.getParameter("facilityId");
> +if (facilityId == null) facilityId = session.getAttribute 
> ("facilityId");
>  context.put("facilityId", facilityId);
>
>  lookup = request.getParameter("look_up");
>
>