From 0335897265071d9ce3a0a524c877c5cbe4cea482 Mon Sep 17 00:00:00 2001 From: James Gunn Date: Wed, 3 Jul 2024 14:29:26 +0100 Subject: [PATCH] Workaround partial stated name attributes (#1405) --- .../TeachingRecordSystem.Core/Dqt/Models/ContactExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Models/ContactExtensions.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Models/ContactExtensions.cs index ff852b1e1..b27e66a48 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Models/ContactExtensions.cs +++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Models/ContactExtensions.cs @@ -45,6 +45,6 @@ public static string ResolveFullName(this Contact contact, bool includeMiddleNam } public static bool HasStatedNames(this Contact contact) => - !string.IsNullOrEmpty(contact.dfeta_StatedFirstName) || + !string.IsNullOrEmpty(contact.dfeta_StatedFirstName) && !string.IsNullOrEmpty(contact.dfeta_StatedLastName); }