Skip to content

Commit 46f3744

Browse files
committed
TD-5153 Fixes no file upload error
1 parent a982eab commit 46f3744

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

DigitalLearningSolutions.Web/Controllers/FrameworksController/ImportCompetencies.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ public IActionResult DownloadCompetencies(int frameworkId, int DownloadOption, s
4545
public IActionResult StartImport(ImportCompetenciesFormData model, int frameworkId, string tabname, bool isNotBlank)
4646
{
4747
if (!ModelState.IsValid)
48-
return View("Developer/Import/Index", model);
48+
{
49+
var adminId = GetAdminId();
50+
var framework = frameworkService.GetFrameworkDetailByFrameworkId(frameworkId, adminId);
51+
var viewModel = new ImportCompetenciesViewModel(framework, isNotBlank);
52+
viewModel.ImportFile = model.ImportFile;
53+
return View("Developer/Import/Index", viewModel);
54+
}
4955
try
5056
{
5157
var adminUserID = User.GetAdminIdKnownNotNull();

0 commit comments

Comments
 (0)