Author: jleroux
Date: Tue Apr 21 12:39:45 2009 New Revision: 767127 URL: http://svn.apache.org/viewvc?rev=767127&view=rev Log: The issue I got in the previous commit (r767123) was the same than the one I found earlier and described at https://issues.apache.org/jira/browse/OFBIZ-2260?focusedCommentId=12698086&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12698086 So here is the fix. And I will be very suspicious with Firebug now. Maybe I'm not using it in a good way though, but I can't see why, really! Anyway happy to get rid of that bug! Modified: ofbiz/trunk/applications/product/webapp/catalog/product/EditProductFeatures.ftl Modified: ofbiz/trunk/applications/product/webapp/catalog/product/EditProductFeatures.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/product/EditProductFeatures.ftl?rev=767127&r1=767126&r2=767127&view=diff ============================================================================== --- ofbiz/trunk/applications/product/webapp/catalog/product/EditProductFeatures.ftl (original) +++ ofbiz/trunk/applications/product/webapp/catalog/product/EditProductFeatures.ftl Tue Apr 21 12:39:45 2009 @@ -47,7 +47,7 @@ <input type="hidden" name="productFeatureId_o_${rowCount}" value="${(productFeatureAndAppl.productFeatureId)?if_exists}"> <input type="hidden" name="fromDate_o_${rowCount}" value="${(productFeatureAndAppl.fromDate)?if_exists}"> <td><a href="<@ofbizUrl>EditFeature?productFeatureId=${(productFeatureAndAppl.productFeatureId)?if_exists}</@ofbizUrl>" class="buttontext"> - ${(productFeatureAndAppl.productFeatureId)?if_exists}</a></td> + ${(productFeatureAndAppl.productFeatureId)?if_exists}</a></td> <td>${(productFeatureAndAppl.get("description",locale))?if_exists}</td> <td>${(curProductFeatureType.get("description",locale))?default((productFeatureAndAppl.productFeatureTypeId)?if_exists)}</td> <td><a href="<@ofbizUrl>EditFeatureCategoryFeatures?productFeatureCategoryId=${(productFeatureAndAppl.productFeatureCategoryId)?if_exists}&productId=${(productFeatureAndAppl.productId)?if_exists}</@ofbizUrl>" class="buttontext"> @@ -77,7 +77,12 @@ <input type="checkbox" name="_rowSubmit_o_${rowCount}" value="Y" onclick="javascript:checkToggle(this, 'selectAllForm');highlightRow(this,'productFeatureId_tableRow_${rowCount}');"> </td> <td> - <a href='<@ofbizUrl>RemoveFeatureFromProduct?productId=${(productFeatureAndAppl.productId)?if_exists}&productFeatureId=${(productFeatureAndAppl.productFeatureId)?if_exists}&fromDate=${productFeatureAndAppl.getString("fromDate")}</@ofbizUrl>' class="buttontext">${uiLabelMap.CommonDelete}</a> + <form name= "RemoveFeatureFromProduct_o_${rowCount}" method= "post" action= "<@ofbizUrl>RemoveFeatureFromProduct</@ofbizUrl>"> + <input type= "hidden" name= "productId" value= "${(productFeatureAndAppl.productId)?if_exists}"> + <input type= "hidden" name= "productFeatureId" value= "${(productFeatureAndAppl.productFeatureId)?if_exists}"> + <input type= "hidden" name= "fromDate" value= "${productFeatureAndAppl.getString("fromDate")}"> + <a href="javascript:document.RemoveFeatureFromProduct_o_${rowCount}.submit()" class="buttontext">${uiLabelMap.CommonDelete}</a> + </form> </td> </tr> <#assign rowCount = rowCount + 1> |
Free forum by Nabble | Edit this page |