Author: pranayp
Date: Sat Jan 17 14:04:14 2015
New Revision: 1652610

URL: http://svn.apache.org/r1652610
Log:
Applied patch from jira issue - OFBIZ-5034. Contact us submit doesn't display a 
message on the page and doesn't send an email notification. 
Thanks Eric de Maulde for reporting the issue and Amardeep Singh Jhajj for 
providing the patch.

Modified:
    ofbiz/trunk/specialpurpose/ecommerce/config/EcommerceUiLabels.xml
    
ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml

Modified: ofbiz/trunk/specialpurpose/ecommerce/config/EcommerceUiLabels.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/config/EcommerceUiLabels.xml?rev=1652610&r1=1652609&r2=1652610&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/config/EcommerceUiLabels.xml (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/config/EcommerceUiLabels.xml Sat Jan 
17 14:04:14 2015
@@ -5159,4 +5159,7 @@
         <value xml:lang="zh">浏览询价</value>
         <value xml:lang="zh-TW">檢視報價</value>
     </property>
+    <property key="ThankYouForContactingUs">
+        <value xml:lang="en">Thank You for contacting us.</value>
+    </property>
 </resource>

Modified: 
ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml?rev=1652610&r1=1652609&r2=1652610&view=diff
==============================================================================
--- 
ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml
 (original)
+++ 
ofbiz/trunk/specialpurpose/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml
 Sat Jan 17 14:04:14 2015
@@ -1308,10 +1308,10 @@ under the License.
                 <set field="parameters.contactMechIdFrom" 
from-field="contact.contactMechId"/>
             </else>
         </if-empty>
-        <set-service-fields 
service-name="createCommunicationEventWithoutPermission" to-map="newComm" 
map="parameters"/>
-        <set field="newComm.partyIdFrom" from-field="parameters.partyId"/>
-        <call-service service-name="createCommunicationEventWithoutPermission" 
in-map-name="newComm">
-            <default-message property="CommonGenericServiceSuccessMessage" 
resource="CommonUiLabels"></default-message>
+        <set-service-fields service-name="sendContactUsEmailToCompany" 
to-map="newComm" map="parameters"/>
+        <set field="newComm.emailType" value="CONT_NOTI_EMAIL"/>
+        <call-service service-name="sendContactUsEmailToCompany" 
in-map-name="newComm">
+            <default-message property="ThankYouForContactingUs" 
resource="EcommerceUiLabels"></default-message>
         </call-service>
     </simple-method>
     <simple-method method-name="fromSetSessionLocale" 


Reply via email to