Browse Source

Person::toString amended

Andrew Grant 5 months ago
parent
commit
3f39388e4b

+ 0 - 0
docs/Conditioning.txt → docs/conditioning.txt


+ 2 - 2
src/main/java/scot/carricksoftware/grants/domains/people/Person.java

@@ -80,11 +80,11 @@ public class Person extends BaseEntity {
         builder.append(", ");
         builder.append(this.firstName);
         builder.append(", ");
-        if (certifiedYearOfBirth != null) {
+        if (certifiedYearOfBirth != null && !certifiedYearOfBirth.isEmpty())  {
             builder.append(certifiedYearOfBirth);
             builder.append(" ");
         }  else {
-            if (recordedYearOfBirth != null) {
+            if (recordedYearOfBirth != null && !recordedYearOfBirth.isEmpty())  {
                 builder.append("(");
                 builder.append(recordedYearOfBirth);
                 builder.append(")");