Author: jacopoc
Date: Wed Oct 4 00:36:38 2006
New Revision: 452782
URL:
http://svn.apache.org/viewvc?view=rev&rev=452782Log:
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")/>