Author: doogie
Date: Wed Sep 16 16:23:21 2009
New Revision: 815861
URL:
http://svn.apache.org/viewvc?rev=815861&view=revLog:
Apply a similiar fix for OFBIZ-2943, to allow sending emails from the
profile page when the current UserLogin has no assigned party.
Modified:
ofbiz/branches/release09.04/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl
Modified: ofbiz/branches/release09.04/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl?rev=815861&r1=815860&r2=815861&view=diff==============================================================================
--- ofbiz/branches/release09.04/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl (original)
+++ ofbiz/branches/release09.04/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl Wed Sep 16 16:23:21 2009
@@ -102,7 +102,7 @@
<#elseif "EMAIL_ADDRESS" = contactMech.contactMechTypeId>
<div>
${contactMech.infoString?if_exists}
- <a href="<@ofbizUrl>EditCommunicationEvent?partyIdFrom=${userLogin.partyId}&partyIdTo=${partyId}&communicationEventTypeId=EMAIL_COMMUNICATION&contactMechIdTo=${contactMech.contactMechId}&contactMechTypeId=EMAIL_ADDRESS<#if thisUserPrimaryEmail?has_content>&contactMechIdFrom=${thisUserPrimaryEmail.contactMechId}</#if></@ofbizUrl>" class="buttontext">${uiLabelMap.CommonSendEmail}</a>
+ <a href="<@ofbizUrl>EditCommunicationEvent?<#if userLogin.partyId?has_content>partyIdFrom=${userLogin.partyId}&</#if>partyIdTo=${partyId}&communicationEventTypeId=EMAIL_COMMUNICATION&contactMechIdTo=${contactMech.contactMechId}&contactMechTypeId=EMAIL_ADDRESS<#if thisUserPrimaryEmail?has_content>&contactMechIdFrom=${thisUserPrimaryEmail.contactMechId}</#if></@ofbizUrl>" class="buttontext">${uiLabelMap.CommonSendEmail}</a>
</div>
<#elseif "WEB_ADDRESS" = contactMech.contactMechTypeId>
<div>