You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2009/08/08 17:38:50 UTC

svn commit: r802396 - /ofbiz/branches/release09.04/applications/product/webapp/catalog/category/EditCategoryProducts.ftl

Author: ashish
Date: Sat Aug  8 15:38:50 2009
New Revision: 802396

URL: http://svn.apache.org/viewvc?rev=802396&view=rev
Log:
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="<@o...@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="<@o...@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>