You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by nm...@apache.org on 2020/02/22 11:09:15 UTC

[ofbiz-framework] 02/02: Fixed: Convert ContactMechServices.xml mini-lang to groovyDSL (OFBIZ-11358)

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

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

commit 2d9a5081fb7604db288e9aec571833ac58c2fdef
Author: Nicolas Malin <ni...@nereide.fr>
AuthorDate: Sat Feb 22 12:08:37 2020 +0100

    Fixed: Convert ContactMechServices.xml mini-lang to groovyDSL
    (OFBIZ-11358)
    
    Add missing parenthesis to generate success message with elvis syntax
---
 applications/party/groovyScripts/contact/ContactMechServices.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/party/groovyScripts/contact/ContactMechServices.groovy b/applications/party/groovyScripts/contact/ContactMechServices.groovy
index 26b259e..14bfb12 100644
--- a/applications/party/groovyScripts/contact/ContactMechServices.groovy
+++ b/applications/party/groovyScripts/contact/ContactMechServices.groovy
@@ -37,7 +37,7 @@ def updateContactMech() {
             default: 'ContactMechanism'
     ]
     String successMessage = "Party" +
-            successMessageMap."${parameters.contactMechTypeId}" ?: successMessageMap.default +
+            (successMessageMap."${parameters.contactMechTypeId}" ?: successMessageMap.default) +
             "SuccessfullyUpdated"
     GenericValue lookedValue = from('ContactMech').where(parameters).queryOne()
     if (! lookedValue) {