File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
DigitalLearningSolutions.Web/Controllers/SuperAdmin Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments