This is an automated email from the ASF dual-hosted git repository. jleroux pushed a commit to branch ecomify-OFBIZ-11468_Convert_ShipmentReceiptServices-squashed in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
commit c759ccd50ae1fbacafc2d517b004f503e650f035 Author: Pawan Verma <pawan.ve...@hotwaxsystems.com> AuthorDate: Sat May 23 23:35:39 2020 +0530 Fixed: RuntimeException in getPartyNameForDate service for partyNameHistory.gender field(OFBIZ-11736) The reason for this issue is code is trying to get the gender of person from partyNameHistory record and gender is not a field in partyNameHistory entity. During conversion we minimized duplicate code which caused that issue. I've added a check to avoid checking gender in partyNameHistory record. --- 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 872ed75..60c438f 100644 --- a/applications/party/groovyScripts/party/PartyServices.groovy +++ b/applications/party/groovyScripts/party/PartyServices.groovy @@ -104,7 +104,7 @@ def getPartyNameForDate() { if (person.middleName) resultMap.middleName = person.middleName if (person.personalTitle) resultMap.personalTitle = person.personalTitle if (person.suffix) resultMap.suffix = person.suffix - if (person.gender) resultMap.gender = person.gender + if (!partyNameHistoryCurrent && person.gender) resultMap.gender = person.gender resultMap.fullName = PartyHelper.getPartyName(person, parameters.lastNameFirst == "Y") } else if (partyGroup) {