svn commit: r564459 - /ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r564459 - /ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml

jonesde
Author: jonesde
Date: Thu Aug  9 20:43:25 2007
New Revision: 564459

URL: http://svn.apache.org/viewvc?view=rev&rev=564459
Log:
Changed personal info update notification to show a warning and not call the send mail from screen service if there is no to address

Modified:
    ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml

Modified: ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml?view=diff&rev=564459&r1=564458&r2=564459
==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml (original)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml Thu Aug  9 20:43:25 2007
@@ -462,7 +462,13 @@
             <set field="emailParams.contentType" from-field="storeEmail.contentType"/>
             <set field="emailParams.bodyParameters" from-field="bodyParameters"/>
             <set field="emailParams.bodyScreenUri" from-field="storeEmail.bodyScreenLocation"/>
-            <call-service service-name="sendMailFromScreen" in-map-name="emailParams"/>
+            
+            <if-not-empty field-name="emailParams.sendTo">
+                <call-service service-name="sendMailFromScreen" in-map-name="emailParams"/>
+                <else>
+                    <log level="warning" message="Tried to send Update Personal Info Notifcation with no to address; partyId is [${partyId}], subject is: ${emailParams.subject}"/>
+                </else>
+            </if-not-empty>
         </if-not-empty>
     </simple-method>
 </simple-methods>