diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs index fbf124f95..75374245c 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs @@ -191,6 +191,15 @@ namespace IRaCIS.Application.Services if (firstQuestion != null) { var systemData = _mapper.Map(x); + if (firstQuestion.IsJudgeQuestion) + { + if (firstQuestion.TypeValue != x.TypeValue) + { + firstQuestion.AnswerCombination = string.Empty; + firstQuestion.AnswerGroup = string.Empty; + firstQuestion.JudgeType = JudgeTypeEnum.None; + } + } var newData = _mapper.Map(systemData, firstQuestion); newData.Id = x.Id; newData.ReadingQuestionSystemId = x.ReadingQuestionSystemId;