Author: jleroux Date: Sun Apr 28 10:51:46 2019 New Revision: 1858312 URL: http://svn.apache.org/viewvc?rev=1858312&view=rev Log: Fixed: Remove link is not working in shopping list (OFBIZ-10967)
Steps to reproduce 1. Login with valid username and password. 2. Navigate to ecommerce. 2.1 Adds product/s to the cart 2.2 Add it/them in a shopping list. 4. Navigate to shopping list section. 5. Click on link “Remove" Expected Result: Product should be removed from shopping list. Actual Result: Remove link is not working. jleroux: OFBIZ-7291 broke it. That can be tested on old demo (R13) Fixed by using a simple submit field Thanks: Ashish Sharma for report Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/shoppinglist/EditShoppingList.ftl Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/shoppinglist/EditShoppingList.ftl URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/shoppinglist/EditShoppingList.ftl?rev=1858312&r1=1858311&r2=1858312&view=diff ============================================================================== --- ofbiz/ofbiz-plugins/trunk/ecommerce/template/shoppinglist/EditShoppingList.ftl (original) +++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/shoppinglist/EditShoppingList.ftl Sun Apr 28 10:51:46 2019 @@ -492,12 +492,12 @@ under the License. <a href="javascript:TimestampSubmit(listform_${shoppingListItem.shoppingListItemSeqId});" class="btn btn-outline-secondary">${uiLabelMap.CommonUpdate}</a> </div> <div class="btn-group"> - <a href="javascript:document.removeFromShoppingList.submit();" class="btn btn-outline-secondary">${uiLabelMap.CommonRemove}</a> + <form name="removeFromShoppingList" method="post" action="<@ofbizUrl>removeFromShoppingList</@ofbizUrl>"> + <input type="hidden" name="shoppingListId" value="${shoppingListItem.shoppingListId!}"> + <input type="hidden" name="shoppingListItemSeqId" value="${shoppingListItem.shoppingListItemSeqId}"> + <input type="submit" value="${uiLabelMap.CommonRemove}" class="btn btn-outline-secondary"/> + </form> </div> - <form name="removeFromShoppingList" method="post" action="<@ofbizUrl>removeFromShoppingList</@ofbizUrl>"> - <input type="hidden" name="shoppingListId" value="${shoppingListItem.shoppingListId!}"> - <input type="hidden" name="shoppingListItemSeqId" value="${shoppingListItem.shoppingListItemSeqId}"> - </form> <#if isVirtual && productVariantAssocs?has_content> <#assign replaceItemAction = "/replaceShoppingListItem/" + requestAttributes._CURRENT_VIEW_?if_exists /> <#assign addToCartAction = "/additem/" + requestAttributes._CURRENT_VIEW_?if_exists />