Author: deepak
Date: Sun Jul 9 09:10:14 2017
New Revision: 1801357
URL:
http://svn.apache.org/viewvc?rev=1801357&view=revLog:
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) {