svn commit: r452782 - /incubator/ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl

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

svn commit: r452782 - /incubator/ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl

jacopoc
Author: jacopoc
Date: Wed Oct  4 00:36:38 2006
New Revision: 452782

URL: http://svn.apache.org/viewvc?view=rev&rev=452782
Log:
Fixed NPE when no po id and no product id were passed: thanks to Anil K Patel for the patch (OFBIZ-358).

Modified:
    incubator/ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl

Modified: incubator/ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl?view=diff&rev=452782&r1=452781&r2=452782
==============================================================================
--- incubator/ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl (original)
+++ incubator/ofbiz/trunk/applications/product/webapp/facility/inventory/receiveInventory.ftl Wed Oct  4 00:36:38 2006
@@ -242,7 +242,7 @@
           <div class="head3">${uiLabelMap.ProductSelectShipmentReceive}</div>
         </td>
       </tr>
-      <#list shipments as shipment>
+      <#list shipments?if_exists as shipment>
         <#assign originFacility = shipment.getRelatedOneCache("OriginFacility")?if_exists/>
         <#assign destinationFacility = shipment.getRelatedOneCache("DestinationFacility")?if_exists/>
         <#assign statusItem = shipment.getRelatedOneCache("StatusItem")/>