Minor change to sendMailFromTemplateSetting service: Log message when no email address is found instead of throwing exception.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1294102 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user