This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release17.12
in repository
https://gitbox.apache.org/repos/asf/ofbiz-framework.gitThe following commit(s) were added to refs/heads/release17.12 by this push:
new 039d510 Fixed: ListParty doesn't show middleName
039d510 is described below
commit 039d51062c927a0aa0bbf908ec2ddfda8f497190
Author: Pierre Smits <
[hidden email]>
AuthorDate: Sat May 9 12:04:04 2020 +0200
Fixed: ListParty doesn't show middleName
(OFBIZ-11681)
Fixes a logic error
---
.../party/src/main/java/org/apache/ofbiz/party/party/PartyHelper.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyHelper.java b/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyHelper.java
index 1d2c41c..9605c66 100644
--- a/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyHelper.java
+++ b/applications/party/src/main/java/org/apache/ofbiz/party/party/PartyHelper.java
@@ -89,6 +89,10 @@ public class PartyHelper {
}
}
result.append(UtilFormatOut.checkNull(partyValue.getString("firstName")));
+ if (partyValue.getString("middleName") != null) {
+ result.append(" ");
+ }
+ result.append(UtilFormatOut.checkNull(partyValue.getString("middleName")));
} else {
result.append(UtilFormatOut.ifNotEmpty(partyValue.getString("firstName"), "", " "));
result.append(UtilFormatOut.ifNotEmpty(partyValue.getString("middleName"), "", " "));