Fixed: The copyAgreement service fails
Thanks Jacques and Renuka for your contribution.
@@ -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) {
