ox-it/wl-evaluation — pull request #18 by nicholaswilson100 (2014-12-19 19:12:35+00:00)
Title: WL-3757 : Unable to generate PDF - block weighted mean problem

The stacktrace happens because after the first Question Block has its weighted mean calculated, the answers are not fully reset and so when it comes to process the 2nd Question Block's weighted mean (during the Multiple Choice question), it thinks it's fine because those (previous) answers were numeric.

This fix tests to see if the answers are numeric and returns -1 if they aren't (-1 is what the code looks for to see if it should ignore it).