Skip to content

Commit 0b209d2

Browse files
Merge pull request #797 from TechnologyEnhancedLearning/Develop/Fixes/TD-5130-Fixed-unknown-error
TD-5130: Fixed unknown error
2 parents 8fb3447 + 8842058 commit 0b209d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

LearningHub.Nhs.WebUI/Views/Account/CreateAccountSearchRole.cshtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
@{
66
ViewData["Title"] = "Role";
77
var errorHasOccurred = !ViewData.ModelState.IsValid;
8-
var routeData = new Dictionary<string, string> { { "CountryId", Context.Request.Query["CountryId"] } };
8+
string currentCountry = !string.IsNullOrWhiteSpace(Context.Request.Query["CountryId"]) ? Context.Request.Query["CountryId"] : Model.CountryId;
9+
var routeData = new Dictionary<string, string> { { "CountryId", currentCountry } };
910
}
1011

1112
@section styles{

0 commit comments

Comments
 (0)