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
205 stars 120 forks source link

adding zero as a default value to the empty marks field #981

Closed likileads closed 1 year ago

christianp commented 1 year ago

Thanks! Did you test this? You've only changed the loadFromJSON method, which is used by the unit tests. The loadfromXML method is used when an exam is displayed in a browser. It would make more sense to clean the value of this.marks in the finaliseLoad method, which runs after loading, whichever loading method is used.