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:54:47 UTC

[ofbiz-framework] branch trunk updated: Fixed: Groovy script error when creating a communication event role (OFBIZ-12702)

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

mleila 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 608e38c861 Fixed: Groovy script error when creating a communication event role (OFBIZ-12702)
608e38c861 is described below

commit 608e38c8618f512f98c14993b294f13e81f5751c
Author: Leila <ml...@apache.org>
AuthorDate: Fri Oct 14 11:51:05 2022 +0200

    Fixed: Groovy script error when creating a communication event role
    (OFBIZ-12702)
---
 .../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
                 }
             }
         }