Author: ashish
Date: Tue Apr 21 08:42:56 2009
New Revision: 767072
URL: http://svn.apache.org/viewvc?rev=767072&view=rev
Log:
https://localhost:8443/catalog/control/EditCategoryProdCatalogs?productCategoryId=CATALOG1
Delete link was not working.
Changed code on the basis of David's suggestion on Dev mailing list on thread
"Secured URLs strategy".
Am I done it right David ?
Modified:
ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProdCatalogs.ftl
Modified:
ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProdCatalogs.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProdCatalogs.ftl?rev=767072&r1=767071&r2=767072&view=diff
==============================================================================
---
ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProdCatalogs.ftl
(original)
+++
ofbiz/trunk/applications/product/webapp/catalog/category/EditCategoryProdCatalogs.ftl
Tue Apr 21 08:42:56 2009
@@ -72,8 +72,13 @@
</form>
</td>
<td align="center">
- <a
href="<@ofbizUrl>category_removeProductCategoryFromProdCatalog?prodCatalogId=${(prodCatalogCategory.prodCatalogId)?if_exists}&productCategoryId=${(prodCatalogCategory.productCategoryId)?if_exists}&prodCatalogCategoryTypeId=${(prodCatalogCategory.prodCatalogCategoryTypeId)?if_exists}&fromDate=${prodCatalogCategory.getString("fromDate")}</@ofbizUrl>"
class="buttontext">
- ${uiLabelMap.CommonDelete}</a>
+ <form method="post"
action="<@ofbizUrl>category_removeProductCategoryFromProdCatalog</@ofbizUrl>"
name="removeProductCategoryFromProdCatalogForm">
+ <input type="hidden" name="prodCatalogId"
value="${(prodCatalogCategory.prodCatalogId)?if_exists}"/>
+ <input type="hidden" name="productCategoryId"
value="${(prodCatalogCategory.productCategoryId)?if_exists}"/>
+ <input type="hidden" name="prodCatalogCategoryTypeId"
value="${prodCatalogCategory.prodCatalogCategoryTypeId}"/>
+ <input type="hidden" name="fromDate"
value="${(prodCatalogCategory.fromDate)?if_exists}"/>
+ <input type="submit" value="${uiLabelMap.CommonDelete}"/>
+ </form>
</td>
</tr>
<#-- toggle the row color -->