fix: reset the value of multiple of only one correct answer in quiz question

This commit is contained in:
Jannat Patel
2026-01-30 11:08:53 +05:30
parent 8be53d9050
commit 6c06a86af4

View File

@@ -39,6 +39,8 @@ def validate_correct_options(question):
if len(correct_options) > 1:
question.multiple = 1
else:
question.multiple = 0
if not len(correct_options):
frappe.throw(_("At least one option must be correct for this question."))