Skip to content

Commit 9d5c110

Browse files
TD-4509 Issue with 'Search' showing various search results based on leading/trailing end spaces given on 'All Frameworks' & 'My Frameworks' screens
1 parent 0aeac45 commit 9d5c110

File tree

1 file changed

+1
-0
lines changed
  • DigitalLearningSolutions.Web/Controllers/FrameworksController

1 file changed

+1
-0
lines changed

DigitalLearningSolutions.Web/Controllers/FrameworksController/Frameworks.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public IActionResult ViewFrameworks(string? searchString = null,
5959
var adminId = GetAdminId();
6060
var isFrameworkDeveloper = GetIsFrameworkDeveloper();
6161
var isFrameworkContributor = GetIsFrameworkContributor();
62+
searchString = searchString == null ? null : searchString.Trim();
6263
IEnumerable<BrandedFramework> frameworks;
6364

6465
if (tabname == "All") frameworks = frameworkService.GetAllFrameworks(adminId);

0 commit comments

Comments
 (0)