Author: ashish
Date: Fri Jul 17 06:06:17 2009 New Revision: 794971 URL: http://svn.apache.org/viewvc?rev=794971&view=rev Log: Applied patch from jira issue - OFBIZ-2569 - Delete a child-subcategory from cathegory-rollup. Thanks Pranay for the contribution & Torstein for reporting the bug. Modified: ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryRollup.ftl Modified: ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryRollup.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryRollup.ftl?rev=794971&r1=794970&r2=794971&view=diff ============================================================================== --- ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryRollup.ftl (original) +++ ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryRollup.ftl Fri Jul 17 06:06:17 2009 @@ -54,8 +54,7 @@ <input type="text" size="5" name="sequenceNum${suffix}" value="${productCategoryRollup.sequenceNum?if_exists}"> </td> <td> - <a href="<@ofbizUrl>removeProductCategoryFromCategory?showProductCategoryId=${productCategoryId}&productCategoryId=${productCategoryRollup.productCategoryId}&parentProductCategoryId=${productCategoryRollup.parentProductCategoryId}&fromDate=${productCategoryRollup.fromDate}</@ofbizUrl>" class="buttontext"> - ${uiLabelMap.CommonDelete}</a> + <a href="javascript:document.removeProductCategoryFromCategory_${productCategoryRollup_index}.submit();" class="buttontext">${uiLabelMap.CommonDelete}</a> </td> </tr> <#-- toggle the row color --> @@ -72,6 +71,14 @@ </td> </tr> </form> + <#list currentProductCategoryRollups as productCategoryRollup> + <form name="removeProductCategoryFromCategory_${productCategoryRollup_index}" method="post" action="<@ofbizUrl>removeProductCategoryFromCategory</@ofbizUrl>"> + <input type="hidden" name="showProductCategoryId" value="${productCategoryId}"/> + <input type="hidden" name="productCategoryId" value="${productCategoryRollup.productCategoryId}"/> + <input type="hidden" name="parentProductCategoryId" value="${productCategoryRollup.parentProductCategoryId}"/> + <input type="hidden" name="fromDate" value="${productCategoryRollup.fromDate}"/> + </form> + </#list> </#if> <#if currentProductCategoryRollups.size() == 0> <tr valign="middle"> @@ -138,8 +145,7 @@ <input type="text" size="5" name="sequenceNum${suffix}" value="${productCategoryRollup.sequenceNum?if_exists}"> </td> <td> - <a href="<@ofbizUrl>removeProductCategoryFromCategory?showProductCategoryId=${productCategoryId}&productCategoryId=${productCategoryRollup.productCategoryId}&parentProductCategoryId=${productCategoryRollup.parentProductCategoryId}&fromDate=${productCategoryRollup.fromDate}</@ofbizUrl>" class="buttontext"> - ${uiLabelMap.CommonDelete}</a> + <a href="javascript:document.removeProductCategoryFromCategory_1_${productCategoryRollup_index}.submit();" class="buttontext">${uiLabelMap.CommonDelete}</a> </td> </tr> <#-- toggle the row color --> @@ -156,6 +162,14 @@ </td> </tr> </form> + <#list parentProductCategoryRollups as productCategoryRollup> + <form name="removeProductCategoryFromCategory_1_${productCategoryRollup_index}" method="post" action="<@ofbizUrl>removeProductCategoryFromCategory</@ofbizUrl>"> + <input type="hidden" name="showProductCategoryId" value="${productCategoryId}"/> + <input type="hidden" name="productCategoryId" value="${productCategoryRollup.productCategoryId}"/> + <input type="hidden" name="parentProductCategoryId" value="${productCategoryRollup.parentProductCategoryId}"/> + <input type="hidden" name="fromDate" value="${productCategoryRollup.fromDate}"/> + </form> + </#list> </#if> <#if parentProductCategoryRollups.size() == 0> <tr valign="middle"> |
Free forum by Nabble | Edit this page |