Skip to content

Commit

Permalink
Merge pull request #2970 from TechnologyEnhancedLearning/Develop/Fixe…
Browse files Browse the repository at this point in the history
…s/TD-5058-FixAddSimilarCompetency

TD-5058 Fix add similar competency 500 error
  • Loading branch information
kevwhitt-hee authored Nov 22, 2024
2 parents e97a907 + f0b75ff commit 4eb3383
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,10 @@ public IActionResult AddEditFrameworkCompetency(int frameworkId, FrameworkCompet
FrameworkGroupId = frameworkCompetencyGroupId,
FrameworkCompetencyId = frameworkCompetencyId,
FrameworkConfig = detailFramework?.FrameworkConfig,
Competency = new FrameworkCompetency()
{
Name = frameworkCompetency.Name,
Description = frameworkCompetency.Description
},
Competency = frameworkCompetency,
MatchingSearchResults = matchingSearchResults.Count,
SameCompetency = similarItems,
selectedFlagIds = selectedFlagIds.Any() ? selectedFlagIds.Select(a => a.ToString()).Aggregate((b, c) => b + "," + c) : string.Empty,
selectedFlagIds = selectedFlagIds != null ? selectedFlagIds.Select(a => a.ToString()).Aggregate((b, c) => b + "," + c) : string.Empty
};
return View("Developer/SimilarCompetency", model);
}
Expand Down

0 comments on commit 4eb3383

Please sign in to comment.