Author: arunpatidar Date: Sat Feb 20 12:56:48 2016 New Revision: 1731396 URL: http://svn.apache.org/viewvc?rev=1731396&view=rev Log: [OFBIZ-6801] Fixed issue of removeContentFromProductConfigItem request by passing request parameters by submiting a form. Thanks Pramod Kumar Singh for reporting issue and Mohammad Irshad Gouri for providing patch.
Modified: ofbiz/trunk/applications/product/webapp/catalog/config/EditProductConfigItemContent.ftl Modified: ofbiz/trunk/applications/product/webapp/catalog/config/EditProductConfigItemContent.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/config/EditProductConfigItemContent.ftl?rev=1731396&r1=1731395&r2=1731396&view=diff ============================================================================== --- ofbiz/trunk/applications/product/webapp/catalog/config/EditProductConfigItemContent.ftl (original) +++ ofbiz/trunk/applications/product/webapp/catalog/config/EditProductConfigItemContent.ftl Sat Feb 20 12:56:48 2016 @@ -59,7 +59,14 @@ function insertImageName(size,nameValue) <td>${productContentType.description?default(productContent.confItemContentTypeId)}</td> <td>${productContent.fromDate?default("N/A")}</td> <td>${productContent.thruDate?default("N/A")}</td> - <td><a href="<@ofbizUrl>removeContentFromProductConfigItem?configItemId=${productContent.configItemId}&contentId=${productContent.contentId}&confItemContentTypeId=${productContent.confItemContentTypeId}&fromDate=${productContent.fromDate}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDelete}</a></td> + <td> + <form name="removeContentFromProductConfigItem_${productContent.contentId}_${entry_index}" method="post" action="<@ofbizUrl>removeContentFromProductConfigItem</@ofbizUrl>"> + <input name="configItemId" type="hidden" value="${productContent.configItemId}"/> + <input name="contentId" type="hidden" value="${productContent.contentId}"/> + <input name="confItemContentTypeId" type="hidden" value="${productContent.confItemContentTypeId}"/> + <input name="fromDate" type="hidden" value="${productContent.fromDate}"/> + <input type="submit" value="${uiLabelMap.CommonDelete}"/> + </form> <td><a href="/content/control/EditContent?contentId=${productContent.contentId}&externalLoginKey=${requestAttributes.externalLoginKey!}" class="buttontext">${uiLabelMap.ProductEditContent} ${entry.content.contentId}</td> </tr> <#-- toggle the row color -->