You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by pa...@apache.org on 2020/04/18 07:55:59 UTC

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

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 <pa...@hotwaxsystems.com>
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)