diff --git a/Src/CodeSpirit.ExamApi/Dtos/ExamPaper/GenerateRandomExamPaperDto.cs b/Src/CodeSpirit.ExamApi/Dtos/ExamPaper/GenerateRandomExamPaperDto.cs index adf18a7330d0c7debe77d474edbf309a6dd0d7f9..88724ba50d6bdbb122503a65012f5387682b09cc 100644 --- a/Src/CodeSpirit.ExamApi/Dtos/ExamPaper/GenerateRandomExamPaperDto.cs +++ b/Src/CodeSpirit.ExamApi/Dtos/ExamPaper/GenerateRandomExamPaperDto.cs @@ -89,7 +89,9 @@ public class GenerateRandomExamPaperDto Cascade = true, ShowOutline = true, LabelField = "name", - ValueField = "id" + ValueField = "id", + JoinValues = false, + ExtractValue = true )] public List CategoryIds { get; set; } } diff --git a/Src/CodeSpirit.ExamApi/Dtos/Question/CreateQuestionDto.cs b/Src/CodeSpirit.ExamApi/Dtos/Question/CreateQuestionDto.cs index d0cacddc5eb13f3157c8d03eb6d2ec77e4b44e77..01d4b3c1469f3a1ae5af5144be3aaaa24f1ae1ad 100644 --- a/Src/CodeSpirit.ExamApi/Dtos/Question/CreateQuestionDto.cs +++ b/Src/CodeSpirit.ExamApi/Dtos/Question/CreateQuestionDto.cs @@ -41,7 +41,8 @@ public class CreateQuestionDto Addable = true, Removable = true, Draggable = true, - MaxLength = 10 + MaxLength = 10, + VisibleOn = "type != 3" )] public List Options { get; set; } = [];