svn commit: r801900 - /ofbiz/branches/release09.04/applications/product/webapp/catalog/store/EditProductStoreSurveys.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r801900 - /ofbiz/branches/release09.04/applications/product/webapp/catalog/store/EditProductStoreSurveys.ftl

mor-2
Author: mor
Date: Fri Aug  7 07:32:21 2009
New Revision: 801900

URL: http://svn.apache.org/viewvc?rev=801900&view=rev
Log:
Applied fix from trunk for revision: 801898
 Secure URLs in FTL. Applied a slightly modified patch from Ahmed Dini, part of OFBIZ-2668 (https://issues.apache.org/jira/browse/OFBIZ-2668)

Modified:
    ofbiz/branches/release09.04/applications/product/webapp/catalog/store/EditProductStoreSurveys.ftl

Modified: ofbiz/branches/release09.04/applications/product/webapp/catalog/store/EditProductStoreSurveys.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/product/webapp/catalog/store/EditProductStoreSurveys.ftl?rev=801900&r1=801899&r2=801900&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/product/webapp/catalog/store/EditProductStoreSurveys.ftl (original)
+++ ofbiz/branches/release09.04/applications/product/webapp/catalog/store/EditProductStoreSurveys.ftl Fri Aug  7 07:32:21 2009
@@ -44,7 +44,13 @@
                 <td>${storeSurvey.productCategoryId?default("${uiLabelMap.CommonNA}")}</td>
                 <td>${storeSurvey.fromDate?string}</td>
                 <td>${storeSurvey.sequenceNum?if_exists}</td>
-                <td><a href="<@ofbizUrl>deleteProductStoreSurveyAppl?productStoreId=${productStoreId}&productStoreSurveyId=${storeSurvey.productStoreSurveyId}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDelete}</a>
+                <td>
+                  <form name="deleteProductStoreSurveyAppl_${storeSurvey_index}" method="post" action="<@ofbizUrl>deleteProductStoreSurveyAppl</@ofbizUrl>">
+                    <input type="hidden" name="productStoreId" value="${productStoreId}">
+                    <input type="hidden" name="productStoreSurveyId" value="${storeSurvey.productStoreSurveyId}">
+                    <a href="javascript:document.deleteProductStoreSurveyAppl_${storeSurvey_index}.submit()" class="buttontext">${uiLabelMap.CommonDelete}</a>
+                  </form>
+                </td>
                 <#-- toggle the row color -->
                 <#if rowClass == "2">
                     <#assign rowClass = "1">