Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DigitalLearningSolutions.Data/Services/FrameworkService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1817,8 +1817,8 @@ public Competency GetFrameworkCompetencyForPreview(int frameworkCompetencyId)
AQ.CommentsPrompt,
AQ.CommentsHint
FROM Competencies AS C INNER JOIN
FrameworkCompetencies AS FC ON C.ID = FC.CompetencyID INNER JOIN
FrameworkCompetencyGroups AS FCG ON FC.FrameworkCompetencyGroupID = FCG.ID INNER JOIN
FrameworkCompetencies AS FC ON C.ID = FC.CompetencyID LEFT JOIN
FrameworkCompetencyGroups AS FCG ON FC.FrameworkCompetencyGroupID = FCG.ID LEFT JOIN
CompetencyGroups AS CG ON FCG.CompetencyGroupID = CG.ID INNER JOIN
CompetencyAssessmentQuestions AS CAQ ON C.ID = CAQ.CompetencyID INNER JOIN
AssessmentQuestions AS AQ ON CAQ.AssessmentQuestionID = AQ.ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public IActionResult DeleteFrameworkCompetency(int frameworkId, int frameworkCom
frameworkService.DeleteFrameworkCompetency(frameworkCompetencyId, GetAdminId());
return frameworkCompetencyGroupId != null ? new RedirectResult(Url.Action("ViewFramework", new { tabname = "Structure", frameworkId, frameworkCompetencyGroupId }) + "#fcgroup-" + frameworkCompetencyGroupId.ToString()) : new RedirectResult(Url.Action("ViewFramework", new { tabname = "Structure", frameworkId }) + "#fc-ungrouped");
}
[Route("/Frameworks/{frameworkId}/Competency/{frameworkCompetencyGroupId}/{frameworkCompetencyId}/Preview/")]
[Route("/Frameworks/{frameworkId}/Competency/{frameworkCompetencyGroupId:int=0}/{frameworkCompetencyId}/Preview/")]
public IActionResult PreviewCompetency(int frameworkId, int frameworkCompetencyGroupId, int frameworkCompetencyId)
{
var adminId = GetAdminId();
Expand Down