Author: adrianc
Date: Mon Feb 27 10:52:22 2012
New Revision: 1294102
URL: http://svn.apache.org/viewvc?rev=1294102&view=rev
Log:
Minor change to sendMailFromTemplateSetting service: Log message when no email
address is found instead of throwing exception.
Modified:
ofbiz/trunk/framework/common/script/org/ofbiz/common/email/EmailServices.xml
Modified:
ofbiz/trunk/framework/common/script/org/ofbiz/common/email/EmailServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/script/org/ofbiz/common/email/EmailServices.xml?rev=1294102&r1=1294101&r2=1294102&view=diff
==============================================================================
---
ofbiz/trunk/framework/common/script/org/ofbiz/common/email/EmailServices.xml
(original)
+++
ofbiz/trunk/framework/common/script/org/ofbiz/common/email/EmailServices.xml
Mon Feb 27 10:52:22 2012
@@ -38,11 +38,8 @@ under the License.
<result-to-field result-name="emailAddress"
field="parameters.sendTo"/>
</call-service>
<if-empty field="parameters.sendTo">
- <log level="error" message="PartyId:
${parameters.partyIdTo} has no valid email address!"></log>
- <add-error>
- <fail-property resource="CommonUiLabels"
property="CommonEmailNotValid"/>
- </add-error>
- <check-errors/>
+ <log level="info" message="PartyId:
${parameters.partyIdTo} has no valid email address, not sending email"></log>
+ <return/>
</if-empty>
</if-empty>
</if-not-empty>