Author: jleroux
Date: Fri Oct  1 08:42:15 2010
New Revision: 1003434

URL: http://svn.apache.org/viewvc?rev=1003434&view=rev
Log:
Fixes "Categories removing in Product Quick Admin" 
(https://issues.apache.org/jira/browse/OFBIZ-3950) - OFBIZ-3950

Modified:
    
ofbiz/trunk/applications/product/webapp/catalog/product/EditProductQuickAdmin.ftl

Modified: 
ofbiz/trunk/applications/product/webapp/catalog/product/EditProductQuickAdmin.ftl
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/product/EditProductQuickAdmin.ftl?rev=1003434&r1=1003433&r2=1003434&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/product/webapp/catalog/product/EditProductQuickAdmin.ftl
 (original)
+++ 
ofbiz/trunk/applications/product/webapp/catalog/product/EditProductQuickAdmin.ftl
 Fri Oct  1 08:42:15 2010
@@ -397,8 +397,15 @@ function doPublish() {
                     <#list productCategoryMembers as prodCatMemb>
                         <#assign prodCat = 
prodCatMemb.getRelatedOne("ProductCategory")/>
                         <tr valign="middle"<#if rowClass == "1"> 
class="alternate-row"</#if>>
-                            <td colspan="2"><a 
href='<@ofbizUrl>quickAdminRemoveProductFromCategory?productId=${prodCatMemb.productId?if_exists}&amp;productCategoryId=${prodCatMemb.productCategoryId}&amp;fromDate=${prodCatMemb.getString("fromDate")}</@ofbizUrl>'
 class="buttontext">x</a>
-                            ${prodCat.description?if_exists} 
${prodCat.productCategoryId}</td>
+                            <td colspan="2">
+                              <form 
name="quickAdminRemoveProductFromCategory_${prodCat.productCategoryId}" 
action="<@ofbizUrl>quickAdminRemoveProductFromCategory</@ofbizUrl>" 
method="post">
+                                <input type="hidden" name="productId" 
value="${prodCatMemb.productId?if_exists}" />
+                                <input type="hidden" name="productCategoryId" 
value="${prodCatMemb.productCategoryId}" />
+                                <input type="hidden" name="fromDate" 
value="${prodCatMemb.getString("fromDate")}" />
+                                <a 
href="javascript:document.quickAdminRemoveProductFromCategory_${prodCat.productCategoryId}.submit();"
 class="buttontext">x</a>
+                                ${prodCat.description?if_exists} 
${prodCat.productCategoryId}
+                              </form>
+                            </td>
                         </tr>
                         <#-- toggle the row color -->
                         <#if rowClass == "2">


Reply via email to