Skip to content

Commit 78b6e4a

Browse files
Merge remote-tracking branch 'origin/release-v1.0.0' into Develop/Features/TD-4632-Asacentremanageratanewcentre,Ishouldbeabletoregisterusingapredeterminedemailaddresswithoutadditionalapprovalsteps
2 parents 69c5f3a + 4b268cb commit 78b6e4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DigitalLearningSolutions.Web/ViewModels/TrackingSystem/Centre/Administrator/SearchableAdminViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ ReturnPageQuery returnPageQuery
1717
)
1818
{
1919
Id = admin.AdminAccount.Id;
20-
Name = admin.SearchableName;
20+
Name = string.IsNullOrWhiteSpace(admin.UserAccount.FirstName) ? admin.UserAccount.LastName :
21+
$"{admin.UserAccount.LastName}, {admin.UserAccount.FirstName}";
2122
CategoryName = admin.AdminAccount.CategoryName ?? "All";
2223
EmailAddress = admin.EmailForCentreNotifications;
2324
IsLocked = admin.UserAccount.FailedLoginCount >= AuthHelper.FailedLoginThreshold;

0 commit comments

Comments
 (0)