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 2020/08/26 16:00:18 UTC

[ofbiz-framework] branch trunk updated: Fixed: Error in sendShipmentScheduledNotification service (OFBIZ-11983) (#234)

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 ef56f80  Fixed: Error in sendShipmentScheduledNotification service (OFBIZ-11983) (#234)
ef56f80 is described below

commit ef56f80bb35ab11a48702f96d4595b6e4c93a6ed
Author: Mridul Pathak <mr...@gmail.com>
AuthorDate: Wed Aug 26 21:30:07 2020 +0530

    Fixed: Error in sendShipmentScheduledNotification service (OFBIZ-11983) (#234)
    
    sendTo field was wrongly being fetched from PartyAndContactMech view to get emailAddress, replaced it with the correct entity field infoString.
    
    Thanks: Jacques for input.
---
 applications/product/groovyScripts/shipment/ShipmentServices.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/product/groovyScripts/shipment/ShipmentServices.groovy b/applications/product/groovyScripts/shipment/ShipmentServices.groovy
index 93b0db0..6b6f7d9 100644
--- a/applications/product/groovyScripts/shipment/ShipmentServices.groovy
+++ b/applications/product/groovyScripts/shipment/ShipmentServices.groovy
@@ -470,7 +470,7 @@ def sendShipmentScheduledNotification() {
         sendTos << from("PartyAndContactMech")
                 .where(partyId: entry.getKey(),
                         contactMechTypeId: "EMAIL_ADDRESS")
-                .getFieldList("sendTo")
+                .getFieldList("infoString")
     }
     sendEmailMap.sendTo = sendTos.join(',')