You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2009/09/16 18:19:19 UTC

svn commit: r815860 - /ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl

Author: doogie
Date: Wed Sep 16 16:19:19 2009
New Revision: 815860

URL: http://svn.apache.org/viewvc?rev=815860&view=rev
Log:
Fix OFBIZ-2943, sending an email in profile page when the current
UserLogin has no associated party.

Modified:
    ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl

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=815860&r1=815859&r2=815860&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl Wed Sep 16 16:19:19 2009
@@ -103,7 +103,9 @@
                   <div>
                     ${contactMech.infoString?if_exists}
                     <form method="post" action="<@o...@ofbizUrl>" onSubmit="javascript:submitFormDisableSubmits(this)" name="createEmail${contactMech.infoString?replace("&#64;","")?replace(".","")}">
+                      <#if userLogin.partyId?has_content>
                       <input name="partyIdFrom" value="${userLogin.partyId}" type="hidden"/>
+                      </#if>
                       <input name="partyIdTo" value="${partyId}" type="hidden"/>
                       <input name="contactMechIdTo" value="${contactMech.contactMechId}" type="hidden"/>
                       <input name="my" value="My" type="hidden"/>