Skip to content

Commit cf20e9c

Browse files
authored
Merge pull request #2754 from TechnologyEnhancedLearning/Develop/Fixes/TD-4376-Issuewithnottrimmingofthetrailing/leadingendspacesonSuperAdminsearchscreens
TD-4376 Issue with not trimming of the trailing/leading end spaces on Super Admin search screens
2 parents 790276d + f426116 commit cf20e9c

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

DigitalLearningSolutions.Web/Controllers/SuperAdmin/Administrators/AdminAccountsController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public IActionResult Index(
7171
string? ExistingFilterString = ""
7272
)
7373
{
74+
Search = Search == null ? string.Empty : Search.Trim();
7475
var loggedInSuperAdmin = userService.GetAdminById(User.GetAdminId()!.Value);
7576
if (loggedInSuperAdmin.AdminAccount.Active == false)
7677
{

DigitalLearningSolutions.Web/Controllers/SuperAdmin/Delegates/DelegatesController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public IActionResult Index(
5252
string? SearchString = "",
5353
string? ExistingFilterString = "")
5454
{
55+
Search = Search == null ? string.Empty : Search.Trim();
5556

5657
if (string.IsNullOrEmpty(SearchString) || string.IsNullOrEmpty(ExistingFilterString))
5758
{

DigitalLearningSolutions.Web/Controllers/SuperAdmin/Users/UsersController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ public IActionResult Index(
9999
string? ExistingFilterString = ""
100100
)
101101
{
102+
Search = Search == null ? string.Empty : Search.Trim();
103+
102104
if (string.IsNullOrEmpty(SearchString) || string.IsNullOrEmpty(ExistingFilterString))
103105
{
104106
page = 1;

0 commit comments

Comments
 (0)