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

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

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

Mridul Pathak-5
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 <[hidden email]>
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(',')