svn commit: r820884 - /ofbiz/branches/release09.04/applications/product/webapp/facility/facility/ViewContactMechs.ftl

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

svn commit: r820884 - /ofbiz/branches/release09.04/applications/product/webapp/facility/facility/ViewContactMechs.ftl

ashish-18
Author: ashish
Date: Fri Oct  2 05:03:53 2009
New Revision: 820884

URL: http://svn.apache.org/viewvc?rev=820884&view=rev
Log:
Applied fix from trunk revision: 820883.
Applied patch from jira issue OFBIZ-2980 - Secure Url error in Facility, while deleting contact information.
Thanks Brajesh for the contribution.

Modified:
    ofbiz/branches/release09.04/applications/product/webapp/facility/facility/ViewContactMechs.ftl

Modified: ofbiz/branches/release09.04/applications/product/webapp/facility/facility/ViewContactMechs.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/product/webapp/facility/facility/ViewContactMechs.ftl?rev=820884&r1=820883&r2=820884&view=diff
==============================================================================
--- ofbiz/branches/release09.04/applications/product/webapp/facility/facility/ViewContactMechs.ftl (original)
+++ ofbiz/branches/release09.04/applications/product/webapp/facility/facility/ViewContactMechs.ftl Fri Oct  2 05:03:53 2009
@@ -102,7 +102,11 @@
                 <a href='<@ofbizUrl>EditContactMech?facilityId=${facilityId}&contactMechId=${contactMech.contactMechId}</@ofbizUrl>'>${uiLabelMap.CommonUpdate}</a>
               </#if>
               <#if security.hasEntityPermission("PARTYMGR", "_DELETE", session)>
-                <a href='<@ofbizUrl>deleteContactMech/ViewContactMechs?facilityId=${facilityId}&contactMechId=${contactMech.contactMechId}</@ofbizUrl>'>${uiLabelMap.CommonExpire}</a>
+                <form action="<@ofbizUrl>deleteContactMech/ViewContactMechs</@ofbizUrl>" name="deleteContactForm_${contactMechMap_index}" method="post">
+                  <input type="hidden" name="facilityId" value="${facilityId?if_exists}"/>
+                  <input type="hidden" name="contactMechId" value="${contactMech.contactMechId?if_exists}"/>
+                </form
+                <a href="javascript:document.deleteContactForm_${contactMechMap_index}.submit()">${uiLabelMap.CommonExpire}</a>
               </#if>
             </td>
           </tr>