You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2026/09/26 13:02:55 UTC

(ofbiz-framework) branch trunk updated: Fixed: Regression in the minilang-to-Groovy conversion of ContactMechServicesScript.groovy (OFBIZ-13612)

This is an automated email from the ASF dual-hosted git repository.

mridulpathak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 4221b119dd Fixed: Regression in the minilang-to-Groovy conversion of ContactMechServicesScript.groovy (OFBIZ-13612)
4221b119dd is described below

commit 4221b119dd281a727e5773d555831a36c6b4df51
Author: Mridul Pathak <mr...@gmail.com>
AuthorDate: Sat Sep 26 17:59:41 2026 +0530

    Fixed: Regression in the minilang-to-Groovy conversion of ContactMechServicesScript.groovy (OFBIZ-13612)
    
    sendVerifyEmailAddressNotification() now also requires storeEmail.bodyScreenLocation to be set before attempting to send, matching the original mini-lang, instead of calling sendMailFromScreen with a null bodyScreenUri whenever a ProductStoreEmailSetting row for PRDS_EMAIL_VERIFY exists but its bodyScreenLocation is blank.
---
 .../org/apache/ofbiz/party/contact/ContactMechServicesScript.groovy     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/party/src/main/groovy/org/apache/ofbiz/party/contact/ContactMechServicesScript.groovy b/applications/party/src/main/groovy/org/apache/ofbiz/party/contact/ContactMechServicesScript.groovy
index 8cd054624e..023bdb687f 100644
--- a/applications/party/src/main/groovy/org/apache/ofbiz/party/contact/ContactMechServicesScript.groovy
+++ b/applications/party/src/main/groovy/org/apache/ofbiz/party/contact/ContactMechServicesScript.groovy
@@ -303,7 +303,7 @@ Map sendVerifyEmailAddressNotification() {
     GenericValue emailAddressVerification = from('EmailAddressVerification')
             .where('emailAddress', parameters.emailAddress)
             .queryOne()
-    if (emailAddressVerification && storeEmail) {
+    if (emailAddressVerification && storeEmail?.bodyScreenLocation) {
         Map emailParams = [
             sendTo: parameters.emailAddress,
             subject: storeEmail.subject,