You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2009/10/10 15:34:44 UTC
svn commit: r823855 -
/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/customer/newmsg.ftl
Author: ashish
Date: Sat Oct 10 13:34:43 2009
New Revision: 823855
URL: http://svn.apache.org/viewvc?rev=823855&view=rev
Log:
Applied patch from jira issue OFBIZ-3021 - Improvement in contact us functionality.
On submission of contact us form (https://demo.ofbiz.org/ecommerce/control/contactus) , communication event record will be created but no value set in field "Party Id To" .
To Resolve this issue : -
1) Get company partyId from ProductStore .
2) Pass company partyId in hidden parameters with name partyIdTo.
Thanks Awdesh for your contribution.
Modified:
ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/customer/newmsg.ftl
Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/customer/newmsg.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/customer/newmsg.ftl?rev=823855&r1=823854&r2=823855&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/customer/newmsg.ftl (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/customer/newmsg.ftl Sat Oct 10 13:34:43 2009
@@ -31,6 +31,9 @@
<input type="hidden" name="partyIdFrom" value="${userLogin.partyId}"/>
<input type="hidden" name="contactMechTypeId" value="WEB_ADDRESS"/>
<input type="hidden" name="communicationEventTypeId" value="WEB_SITE_COMMUNICATI"/>
+ <#if productStore?has_content>
+ <input type="hidden" name="partyIdTo" value="${productStore.payToPartyId?if_exists}"/>
+ </#if>
<input type="hidden" name="note" value="${Static["org.ofbiz.base.util.UtilHttp"].getFullRequestUrl(request).toString()}"/>
<#if message?has_content>
<input type="hidden" name="parentCommEventId" value="${communicationEvent.communicationEventId}"/>