Author: ashish
Date: Sat Aug 8 15:38:50 2009
New Revision: 802396
URL:
http://svn.apache.org/viewvc?rev=802396&view=revLog:
Applied fix from trunk revision: 802395.
Applied patch from jira issue OFBIZ-2819 (Non secure Url in edit category product.)
Thanks Vivek for the patch.
Modified:
ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryProducts.ftl
Modified: ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryProducts.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryProducts.ftl?rev=802396&r1=802395&r2=802396&view=diff==============================================================================
--- ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryProducts.ftl (original)
+++ ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryProducts.ftl Sat Aug 8 15:38:50 2009
@@ -81,8 +81,7 @@
<textarea name="comments${suffix}" rows="2" cols="40">${(productCategoryMember.comments)?if_exists}</textarea>
</td>
<td align="center">
- <a href="<@ofbizUrl>removeCategoryProductMember?VIEW_SIZE=${viewSize}&VIEW_INDEX=${viewIndex}&productId=${(productCategoryMember.productId)?if_exists}&productCategoryId=${(productCategoryMember.productCategoryId)?if_exists}&fromDate=${productCategoryMember.getString("fromDate")}&activeOnly=${activeOnly.toString()}</@ofbizUrl>" class="buttontext">
- ${uiLabelMap.CommonDelete}</a>
+ <a href="javascript:document.deleteProductFromCategory_${productCategoryMember.productId}.submit();" class="buttontext">${uiLabelMap.CommonDelete}</a>
</td>
</tr>
<#-- toggle the row color -->
@@ -99,6 +98,16 @@
</td>
</tr>
</form>
+ <#list productCategoryMembers as productCategoryMember>
+ <form name="deleteProductFromCategory_${productCategoryMember.productId}" method="post" action="<@ofbizUrl>removeCategoryProductMember</@ofbizUrl>">
+ <input type="hidden" name="VIEW_SIZE" value="${viewSize}"/>
+ <input type="hidden" name="VIEW_INDEX" value="${viewIndex}"/>
+ <input type="hidden" name="productId" value="${(productCategoryMember.productId)?if_exists}"/>
+ <input type="hidden" name="productCategoryId" value="${(productCategoryMember.productCategoryId)?if_exists}"/>
+ <input type="hidden" name="fromDate" value="${(productCategoryMember.fromDate)?if_exists}"/>
+ <input name="activeOnly" type="hidden" value="${activeOnly.toString()}"/>
+ </form>
+ </#list>
</#if>
</table>
</div>