You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mo...@apache.org on 2009/08/07 09:32:21 UTC

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

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="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDelete}</a>
+                <td>
+                  <form name="deleteProductStoreSurveyAppl_${storeSurvey_index}" method="post" action="<@o...@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">