Skip to content

Commit

Permalink
non-marked parts don't count towards anyAnswered
Browse files Browse the repository at this point in the history
Questions containing information only parts began their lives as "wrong"
because the information parts were wrongly being included in the "any
answered" determination. Only parts which do marking contribute to
anyAnswered now.
  • Loading branch information
christianp committed Aug 2, 2018
1 parent 27a43c2 commit 16a59dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/default/files/scripts/question-display.js
Expand Up @@ -246,7 +246,7 @@ Numbas.queueScript('question-display',['display-base','jme-variables','xml','sch
var anyAnswered = false;
for(var i=0;i<q.parts.length;i++)
{
anyAnswered = anyAnswered || q.parts[i].answered;
anyAnswered = anyAnswered || (q.parts[i].doesMarking && q.parts[i].answered);
}
this.anyAnswered(anyAnswered);
},
Expand Down

0 comments on commit 16a59dc

Please sign in to comment.