Author: ashish
Date: Fri Jul 17 06:08:51 2009 New Revision: 794972 URL: http://svn.apache.org/viewvc?rev=794972&view=rev Log: Applied fix from trunk revision: 794971. 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/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryRollup.ftl Modified: ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryRollup.ftl URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryRollup.ftl?rev=794972&r1=794971&r2=794972&view=diff ============================================================================== --- ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryRollup.ftl (original) +++ ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryRollup.ftl Fri Jul 17 06:08:51 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 |