svn commit: r917787 - /ofbiz/trunk/applications/product/webapp/facility/shipment/AddItemsFromInventory.ftl

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

svn commit: r917787 - /ofbiz/trunk/applications/product/webapp/facility/shipment/AddItemsFromInventory.ftl

doogie-3
Author: doogie
Date: Mon Mar  1 23:23:46 2010
New Revision: 917787

URL: http://svn.apache.org/viewvc?rev=917787&view=rev
Log:
The issueInventoryItemToShipment form was created inside a loop, so the
form needs to be named uniquely; therefor, append the item_index to the
name.

Modified:
    ofbiz/trunk/applications/product/webapp/facility/shipment/AddItemsFromInventory.ftl

Modified: ofbiz/trunk/applications/product/webapp/facility/shipment/AddItemsFromInventory.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/shipment/AddItemsFromInventory.ftl?rev=917787&r1=917786&r2=917787&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/shipment/AddItemsFromInventory.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/facility/shipment/AddItemsFromInventory.ftl Mon Mar  1 23:23:46 2010
@@ -53,13 +53,13 @@
           <#if (item.shipmentItemQty > item.totalQtyIssued)>
             <td>
               <div>
-                <form name="issueInventoryItemToShipment" action="<@ofbizUrl>issueInventoryItemToShipment</@ofbizUrl>" method="post">
+                <form name="issueInventoryItemToShipment_${item_index}" action="<@ofbizUrl>issueInventoryItemToShipment</@ofbizUrl>" method="post">
                   <input type="hidden" name="shipmentId" value="${shipmentId}"/>
                   <input type="hidden" name="shipmentItemSeqId" value="${item.shipmentItemSeqId}"/>
                   <input type="hidden" name="totalIssuedQty" value="${item.totalQtyIssued}"/>
                   <span>
                     <input type="text" size="5" name="inventoryItemId"/>
-                    <a href="javascript:call_fieldlookup2(document.issueInventoryItemToShipment.inventoryItemId,'LookupInventoryItem?orderId=${item.orderId}&amp;partyId=${item.partyId}&amp;productId=${item.productId}');">
+                    <a href="javascript:call_fieldlookup2(document.issueInventoryItemToShipment_${item_index}.inventoryItemId,'LookupInventoryItem?orderId=${item.orderId}&amp;partyId=${item.partyId}&amp;productId=${item.productId}');">
                       <img src="/images/fieldlookup.gif" width="15" height="14" border="0" alt="${uiLabelMap.CommonClickHereForFieldLookup}">
                     </a>
                   </span>
@@ -73,4 +73,4 @@
       </#list>
     </table>
   </div>
-</div>
\ No newline at end of file
+</div>