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

jleroux 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 421f8c6  Fixed: error log of a fresh trunk installation (OFBIZ-11953)
421f8c6 is described below

commit 421f8c6569c81711b4267d37470e2cda53c5b1f6
Author: Jacques Le Roux <jacques.le.r...@les7arts.com>
AuthorDate: Thu Aug 13 12:09:13 2020 +0200

    Fixed: error log of a fresh trunk installation (OFBIZ-11953)
    
    Typo: missing quotes
    
    Thanks: Alex Bodnaru for report
---
 .../product/groovyScripts/product/product/ProductServices.groovy      | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/applications/product/groovyScripts/product/product/ProductServices.groovy 
b/applications/product/groovyScripts/product/product/ProductServices.groovy
index e5eae65..afbeb18 100644
--- a/applications/product/groovyScripts/product/product/ProductServices.groovy
+++ b/applications/product/groovyScripts/product/product/ProductServices.groovy
@@ -175,9 +175,7 @@ def duplicateProduct() {
     }
     GenericValue dummyProduct = from("Product").where(parameters).queryOne()
     if (dummyProduct) {
-        String errorMessage = UtilProperties.getMessage("CommonErrorUiLabels",
-                CommonErrorDuplicateKey, parameters.locale)
-        return error(errorMessage)
+        return error(UtilProperties.getMessage("CommonErrorUiLabels", 
"CommonErrorDuplicateKey", parameters.locale))
     }
 
     // look up the old product and clone it

Reply via email to