[OFBIZ-7291] Applied slightly modified patch from the ticket to fix security error on Remove Shopping List Item link in eCommerce.

Thanks Mohammed Rehan Khan for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1748156 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pranay Pandey
2016-06-13 09:35:41 +00:00
parent 8174d2b8f2
commit 227f2c8389
@@ -490,7 +490,13 @@ under the License.
</td>
<td>
<a href="javascript:TimestampSubmit(listform_${shoppingListItem.shoppingListItemSeqId});" class="button">${uiLabelMap.CommonUpdate}</a>
<a href="<@ofbizUrl>removeFromShoppingList?shoppingListId=${shoppingListItem.shoppingListId}&amp;shoppingListItemSeqId=${shoppingListItem.shoppingListItemSeqId}</@ofbizUrl>" class="button">${uiLabelMap.CommonRemove}</a>
<form name="removeFromShoppingList" method="post" action="<@ofbizUrl>removeFromShoppingList</@ofbizUrl>">
<fieldset>
<input type="hidden" name="shoppingListId" value="${shoppingListItem.shoppingListId!}">
<input type="hidden" name="shoppingListItemSeqId" value="${shoppingListItem.shoppingListItemSeqId}">
</fieldset>
</form>
<a href="javascript:document.removeFromShoppingList.submit();" class="button">${uiLabelMap.CommonRemove}</a>
<#if isVirtual && productVariantAssocs?has_content>
<#assign replaceItemAction = "/replaceShoppingListItem/" + requestAttributes._CURRENT_VIEW_?if_exists />
<#assign addToCartAction = "/additem/" + requestAttributes._CURRENT_VIEW_?if_exists />