Author: hansbak
Date: Sat Sep 12 08:44:21 2009 New Revision: 814116 URL: http://svn.apache.org/viewvc?rev=814116&view=rev Log: send email not working on profile contactmech when there was more than one email address Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl?rev=814116&r1=814115&r2=814116&view=diff ============================================================================== --- ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl (original) +++ ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl Sat Sep 12 08:44:21 2009 @@ -102,13 +102,13 @@ <#elseif "EMAIL_ADDRESS" = contactMech.contactMechTypeId> <div> ${contactMech.infoString?if_exists} - <form method="post" action="<@ofbizUrl>NewDraftCommunicationEvent</@ofbizUrl>" onSubmit="javascript:submitFormDisableSubmits(this)" name="createEmail"> + <form method="post" action="<@ofbizUrl>NewDraftCommunicationEvent</@ofbizUrl>" onSubmit="javascript:submitFormDisableSubmits(this)" name="createEmail${contactMech.infoString?replace("@","")?replace(".","")}"> <input name="partyIdFrom" value="${userLogin.partyId}" type="hidden"/> - <input name="partyIdTo" value="${partyId}" type="hidden"/> + <input name="contactMechIdTo" value="${contactMech.contactMechId}" type="hidden"/> <input name="my" value="My" type="hidden"/> <input name="statusId" value="COM_PENDING" type="hidden"/> <input name="communicationEventTypeId" value="EMAIL_COMMUNICATION" type="hidden"/> - </form><a class="buttontext" href="javascript:document.createEmail.submit()">${uiLabelMap.CommonSendEmail}</a> + </form><a class="buttontext" href="javascript:document.createEmail${contactMech.infoString?replace("@","")?replace(".","")}.submit()">${uiLabelMap.CommonSendEmail}</a> </div> <#elseif "WEB_ADDRESS" = contactMech.contactMechTypeId> <div> Modified: ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml?rev=814116&r1=814115&r2=814116&view=diff ============================================================================== --- ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml (original) +++ ofbiz/trunk/applications/party/widget/partymgr/CommunicationEventForms.xml Sat Sep 12 08:44:21 2009 @@ -146,6 +146,7 @@ <alt-target use-when="communicationEvent!=null" target="sendCommunicationEvent"/> <field name="communicationEventId"><hidden/></field> <field name="communicationEventTypeId"><hidden value="EMAIL_COMMUNICATION"/></field> + <field name="contactMechIdTo"><hidden value="${parameters.contactMechIdTo}"/></field> <field name="statusId"><hidden value="COM_IN_PROGRESS"/></field> <field name="parentCommEventId" use-when="parentCommEventId != null"><hidden value="${parameters.parentCommEventId}"/></field> <field name="parentCommEventId" use-when="originalCommEventId != null"><hidden value="${parameters.originalCommEventId}"/></field> |
Free forum by Nabble | Edit this page |