Commit 5d42eda7 by Braden MacDonald

Fix: MCQ question text should be editable even if there are no choices defined yet

parent 90d1317a
...@@ -141,9 +141,7 @@ class MCQBlock(SubmittingXBlockMixin, QuestionnaireAbstractBlock): ...@@ -141,9 +141,7 @@ class MCQBlock(SubmittingXBlockMixin, QuestionnaireAbstractBlock):
all_values = set(self.all_choice_values) all_values = set(self.all_choice_values)
correct = set(data.correct_choices) correct = set(data.correct_choices)
if not all_values: if all_values and not correct:
add_error(self._(u"No choices set yet."))
elif not correct:
add_error( add_error(
self._(u"You must indicate the correct answer[s], or the student will always get this question wrong.") self._(u"You must indicate the correct answer[s], or the student will always get this question wrong.")
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment