Skip to content

Commit c077b99

Browse files
Corrected the Catalogue Id
1 parent 6150abf commit c077b99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LearningHub.Nhs.WebUI/Controllers/CatalogueController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public async Task<IActionResult> IndexAsync(string reference, string tab, int? n
212212
this.ViewBag.ActiveTab = tab;
213213

214214
var catalogue = await this.catalogueService.GetCatalogueAsync(reference);
215-
var catalogueCategoryId = await this.categoryService.GetCatalogueVersionCategoryAsync(catalogue.NodeVersionId);
215+
var catalogueCategoryId = await this.categoryService.GetCatalogueVersionCategoryAsync(catalogue.Id);
216216
catalogue.SelectedCategoryId = catalogueCategoryId;
217217
if (catalogue == null)
218218
{
@@ -304,7 +304,7 @@ public async Task<IActionResult> IndexAsync(string reference, string tab, int? n
304304
}
305305
else if (tab == "courses")
306306
{
307-
int categoryId = moodleCategoryId ?? await this.categoryService.GetCatalogueVersionCategoryAsync(catalogue.NodeVersionId);
307+
int categoryId = moodleCategoryId ?? await this.categoryService.GetCatalogueVersionCategoryAsync(catalogue.Id);
308308
var response = await this.categoryService.GetCoursesByCategoryIdAsync(categoryId);
309309
viewModel.Courses = response.Courses;
310310

0 commit comments

Comments
 (0)