Author: jleroux
Date: Mon May 11 13:37:25 2009
New Revision: 773557
URL:
http://svn.apache.org/viewvc?rev=773557&view=revLog:
A patch from Aswath Satrasala "Error deleting ContactMechPurpose for party PostalAddress" (
https://issues.apache.org/jira/browse/OFBIZ-2450) - OFBIZ-2450
Modified:
ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl
Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl?rev=773557&r1=773556&r2=773557&view=diff==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/party/editcontactmech.ftl Mon May 11 13:37:25 2009
@@ -76,7 +76,17 @@
(${uiLabelMap.CommonSince}:${partyContactMechPurpose.fromDate.toString()})
<#if partyContactMechPurpose.thruDate?has_content>(${uiLabelMap.CommonExpire}: ${partyContactMechPurpose.thruDate.toString()}</#if>
</td>
- <td class="button-col"><a href="<@ofbizUrl>deletePartyContactMechPurpose?partyId=${partyId}&contactMechId=${contactMechId}&contactMechPurposeTypeId=${partyContactMechPurpose.contactMechPurposeTypeId}&fromDate=${partyContactMechPurpose.fromDate.toString()}&DONE_PAGE=${donePage?replace("=","%3d")}&useValues=true</@ofbizUrl>" class="smallSubmit">${uiLabelMap.CommonDelete}</a></td>
+ <td class="button-col">
+ <form name="deletePartyContactMechPurpose_${partyContactMechPurpose.contactMechPurposeTypeId}" method="POST" action="<@ofbizUrl>deletePartyContactMechPurpose</@ofbizUrl>" >
+ <input type="hidden" name="partyId" value="${partyId}" />
+ <input type="hidden" name="contactMechId" value="${contactMechId}" />
+ <input type="hidden" name="contactMechPurposeTypeId" value="${partyContactMechPurpose.contactMechPurposeTypeId}" />
+ <input type="hidden" name="fromDate" value="${partyContactMechPurpose.fromDate.toString()}" />
+ <input type="hidden" name="DONE_PAGE" value="${donePage?replace("=","%3d")}" />
+ <input type="hidden" name="useValues" value="true" />
+ <a href="javascript:document.deletePartyContactMechPurpose_${partyContactMechPurpose.contactMechPurposeTypeId}.submit()" class="buttontext">${uiLabelMap.CommonDelete}</a>
+ </form>
+ </td>
</tr>
</#list>
</#if>