[ofbiz-framework] branch trunk updated: Fixed: Exception Error reflecting while Ecommerce Quick Checkout and Ordermgr Checkout (OFBIZ-11506)

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

[ofbiz-framework] branch trunk updated: Fixed: Exception Error reflecting while Ecommerce Quick Checkout and Ordermgr Checkout (OFBIZ-11506)

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

pawan 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 e290178  Fixed: Exception Error reflecting while Ecommerce Quick Checkout and Ordermgr Checkout (OFBIZ-11506)
e290178 is described below

commit e2901786c28707a49809bbd3974eb6623a74112a
Author: Pawan Verma <[hidden email]>
AuthorDate: Sat Apr 18 13:23:58 2020 +0530

    Fixed: Exception Error reflecting while Ecommerce Quick Checkout and Ordermgr Checkout
    (OFBIZ-11506)
   
    Here is more detail:
    getRelatedParties service(groovy) was returning duplicate key of relatedPartyIdList. So HashMap was passed instead of List of string in entity condition that's why we are getting type casting error.
   
    Thanks: Archana Asthana for report and Mohammed Rehan Khan for the patch.
---
 applications/party/groovyScripts/party/PartyServices.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/party/groovyScripts/party/PartyServices.groovy b/applications/party/groovyScripts/party/PartyServices.groovy
index d1d9360..872ed75 100644
--- a/applications/party/groovyScripts/party/PartyServices.groovy
+++ b/applications/party/groovyScripts/party/PartyServices.groovy
@@ -224,7 +224,7 @@ def getRelatedParties() {
     Map resultMap = success()
 
     List relatedPartyIdList = [parameters.partyIdFrom]
-    resultMap.relatedPartyIdList = followPartyRelationshipsInline(relatedPartyIdList, parameters.partyRelationshipTypeId,
+    resultMap = followPartyRelationshipsInline(relatedPartyIdList, parameters.partyRelationshipTypeId,
             parameters.roleTypeIdFrom, parameters.roleTypeIdFromInclueAllChildTypes,
             parameters.roleTypeIdTo, parameters.roleTypeIdToIncludeAllChildTypes,
             parameters.includeFromToSwitched, parameters.recurse, parameters.useCache)