Author: jaz
Date: Tue Jun 14 16:35:31 2011
New Revision: 1135686
URL:
http://svn.apache.org/viewvc?rev=1135686&view=revLog:
fixed bug that prevented removing items from a shopping list
Modified:
ofbiz/trunk/applications/party/webapp/partymgr/party/editShoppingList.ftl
Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/editShoppingList.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/editShoppingList.ftl?rev=1135686&r1=1135685&r2=1135686&view=diff==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/party/editShoppingList.ftl (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/party/editShoppingList.ftl Tue Jun 14 16:35:31 2011
@@ -191,6 +191,10 @@ under the License.
<td><a href="/catalog/control/EditProduct?productId=${shoppingListItem.productId}&externalLoginKey=${requestAttributes.externalLoginKey}">${shoppingListItem.productId} -
${productContentWrapper.get("PRODUCT_NAME")?default("No Name")}</a> : ${productContentWrapper.get("DESCRIPTION")?if_exists}
</td>
+ <form method="post" action="<@ofbizUrl>removeFromShoppingList</@ofbizUrl>" name='removeform_${shoppingListItem.shoppingListItemSeqId}'>
+ <input type="hidden" name="shoppingListId" value="${shoppingListItem.shoppingListId}" />
+ <input type="hidden" name="shoppingListItemSeqId" value="${shoppingListItem.shoppingListItemSeqId}" />
+ </form>
<form method="post" action="<@ofbizUrl>updateShoppingListItem</@ofbizUrl>" name='listform_${shoppingListItem.shoppingListItemSeqId}'>
<input type="hidden" name="shoppingListId" value="${shoppingListItem.shoppingListId}" />
<input type="hidden" name="shoppingListItemSeqId" value="${shoppingListItem.shoppingListItemSeqId}" />
@@ -208,7 +212,7 @@ under the License.
<td class="align-float"><@ofbizCurrency amount=totalPrice isoCode=currencyUomId/></td>
<td class="button-col align-float">
<a href="javascript:document.listform_${shoppingListItem.shoppingListItemSeqId}.submit();">${uiLabelMap.CommonUpdate}</a>
- <a href="<@ofbizUrl>removeFromShoppingList?shoppingListId=${shoppingListItem.shoppingListId}&shoppingListItemSeqId=${shoppingListItem.shoppingListItemSeqId}</@ofbizUrl>">${uiLabelMap.CommonRemove}</a>
+ <a href="javascript:document.removeform_${shoppingListItem.shoppingListItemSeqId}.submit();">${uiLabelMap.CommonRemove}</a>
</td>
</tr>
<#-- toggle the row color -->