numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
200 stars 118 forks source link

Custom marking variable named "marks" breaks the marking algorithm for a "Choose one from a list" gapfill #890

Closed chrismgraham closed 2 years ago

chrismgraham commented 2 years ago

Example of the problem here: https://numbas.mathcentre.ac.uk/question/116540/choose-one-from-a-list-in-a-gap/

We had a question using the variable name marks in the custom marking matrix field for a Choose one from a list question. This seems to break the marking algorithm (which also uses a variable marks), though only when presented as a gapfill, as illustrated in the above example.

christianp commented 2 years ago

I made issue #892 before seeing this! That issue has my recommended solution, so I'll close this one.