You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ml...@apache.org on 2022/10/14 09:40:48 UTC

[ofbiz-framework] branch release22.01 updated: OFBIZ-12702 Fix groovy script error in createCommunicationEventRole

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

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


The following commit(s) were added to refs/heads/release22.01 by this push:
     new d003964906 OFBIZ-12702 Fix groovy script error in createCommunicationEventRole
d003964906 is described below

commit d003964906f473016e8db7f10fffa4c7fc5a3836
Author: Leila <ml...@apache.org>
AuthorDate: Fri Oct 14 11:40:32 2022 +0200

    OFBIZ-12702 Fix groovy script error in createCommunicationEventRole
---
 .../party/groovyScripts/communication/CommunicationEventServices.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/party/groovyScripts/communication/CommunicationEventServices.groovy b/applications/party/groovyScripts/communication/CommunicationEventServices.groovy
index b2fb799d27..0e1d03c3d4 100644
--- a/applications/party/groovyScripts/communication/CommunicationEventServices.groovy
+++ b/applications/party/groovyScripts/communication/CommunicationEventServices.groovy
@@ -430,7 +430,7 @@ def createCommunicationEventRole() {
                         .queryFirst()
 
                 if (contactMech) {
-                    newEntity.contactMechId = contactMechs[0]
+                    newEntity.contactMechId = contactMech.contactMechId
                 }
             }
         }