From 519c42610be23023b9e73f667867c1b54e642a86 Mon Sep 17 00:00:00 2001 From: kevwhitt-hee Date: Fri, 14 Mar 2025 14:55:03 +0000 Subject: [PATCH] TD-5155 Fixes persistence of add assessment question options --- DigitalLearningSolutions.Web/Models/BulkCompetenciesData.cs | 2 +- .../Import/AddQuestionsToWhichCompetenciesViewModel.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DigitalLearningSolutions.Web/Models/BulkCompetenciesData.cs b/DigitalLearningSolutions.Web/Models/BulkCompetenciesData.cs index 344c674a89..83b8bc8532 100644 --- a/DigitalLearningSolutions.Web/Models/BulkCompetenciesData.cs +++ b/DigitalLearningSolutions.Web/Models/BulkCompetenciesData.cs @@ -32,7 +32,7 @@ public BulkCompetenciesData(DetailFramework framework, int adminUserId, string c public bool AddCustomAssessmentQuestion { get; set; } = false; public List DefaultQuestionIDs { get; set; } = []; public int? CustomAssessmentQuestionID { get; set; } - public int AddAssessmentQuestionsOption { get; set; } //1 = only added, 2 = added and updated, 3 = all uploaded + public int AddAssessmentQuestionsOption { get; set; } = 1; //1 = only added, 2 = added and updated, 3 = all uploaded public int CompetenciesToProcessCount { get; set; } public int CompetenciesToAddCount { get; set; } public int CompetenciesToUpdateCount { get; set; } diff --git a/DigitalLearningSolutions.Web/ViewModels/Frameworks/Import/AddQuestionsToWhichCompetenciesViewModel.cs b/DigitalLearningSolutions.Web/ViewModels/Frameworks/Import/AddQuestionsToWhichCompetenciesViewModel.cs index fa86ccc30a..76a9fa4e68 100644 --- a/DigitalLearningSolutions.Web/ViewModels/Frameworks/Import/AddQuestionsToWhichCompetenciesViewModel.cs +++ b/DigitalLearningSolutions.Web/ViewModels/Frameworks/Import/AddQuestionsToWhichCompetenciesViewModel.cs @@ -33,7 +33,7 @@ public AddQuestionsToWhichCompetenciesViewModel public string FrameworkVocabularySingular { get; set; } public string FrameworkVocabularyPlural { get; set; } public int TotalQuestions { get; set; } - public int AddAssessmentQuestionsOption { get; set; } = 1; //1 = only added, 2 = added and updated, 3 = all uploaded + public int AddAssessmentQuestionsOption { get; set; } //1 = only added, 2 = added and updated, 3 = all uploaded public int CompetenciesToProcessCount { get; set; } public int CompetenciesToAddCount { get; set; } public int CompetenciesToUpdateCount { get; set; }