From 607f27e71593651246d366152edd590baacda14b Mon Sep 17 00:00:00 2001 From: Will Daly Date: Fri, 8 Mar 2013 14:06:45 -0500 Subject: [PATCH] Fixed undefined variable error in choicegroup.html --- common/lib/capa/capa/templates/choicegroup.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/lib/capa/capa/templates/choicegroup.html b/common/lib/capa/capa/templates/choicegroup.html index 8816933075..e4a3f1dc39 100644 --- a/common/lib/capa/capa/templates/choicegroup.html +++ b/common/lib/capa/capa/templates/choicegroup.html @@ -21,11 +21,15 @@ <% if status == 'correct': correctness = 'correct' - if status == 'incorrect': + elif status == 'incorrect': correctness = 'incorrect' + else: + correctness = None %> + % if correctness: class="choicegroup_${correctness}" % endif + % endif >