svn commit: r1801357 - /ofbiz/ofbiz-framework/trunk/applications/accounting/groovyScripts/agreement/AgreementServices.groovy

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

svn commit: r1801357 - /ofbiz/ofbiz-framework/trunk/applications/accounting/groovyScripts/agreement/AgreementServices.groovy

Deepak Dixit-5
Author: deepak
Date: Sun Jul  9 09:10:14 2017
New Revision: 1801357

URL: http://svn.apache.org/viewvc?rev=1801357&view=rev
Log:
Fixed: The copyAgreement service fails (OFBIZ-9143)
Thanks Jacques and Renuka for your contribution.

Modified:
    ofbiz/ofbiz-framework/trunk/applications/accounting/groovyScripts/agreement/AgreementServices.groovy

Modified: ofbiz/ofbiz-framework/trunk/applications/accounting/groovyScripts/agreement/AgreementServices.groovy
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/accounting/groovyScripts/agreement/AgreementServices.groovy?rev=1801357&r1=1801356&r2=1801357&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/accounting/groovyScripts/agreement/AgreementServices.groovy (original)
+++ ofbiz/ofbiz-framework/trunk/applications/accounting/groovyScripts/agreement/AgreementServices.groovy Sun Jul  9 09:10:14 2017
@@ -56,7 +56,8 @@ def copyAgreement() {
             agreementTerms.each { agreementTerm ->
                 Map createAgreementTermInMap = dispatcher.getDispatchContext().makeValidContext('createAgreementTerm', ModelService.IN_PARAM, agreementTerm)
                 createAgreementTermInMap.agreementId = agreementIdTo
-                result = run service: 'createAgreementTerm', with: d
+                createAgreementTermInMap.remove("agreementTermId")
+                result = run service: 'createAgreementTerm', with: createAgreementTermInMap
             }
         }
         if ('Y' == parameters.copyAgreementProducts) {