Skip to content

Commit 6d54e61

Browse files
authored
Merge pull request #1510 from TechnologyEnhancedLearning/Develop/Fixes/Implemented-character-indentation-in-the-dropdown-list
Corrected the Catalogue Id
2 parents d58d920 + c077b99 commit 6d54e61

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)