Wunderbyte-GmbH / moodle-local_catquiz

ALiSe CAT Quiz
Other
1 stars 2 forks source link

GH-537 Do not overwrite fisherinfo #560

Closed davidszkiba closed 2 weeks ago

davidszkiba commented 2 weeks ago

Somehow [1], in the debuginfo feedback generator, the fisherinformation is overwritten. When this happens and the cache is deleted, the progress class will read the fisherinformation from the database where it gets the overwritten value. That value might now be a string like "NA" which causes errors.

1: the fisherinformation is overwritten because it is part of the lastquestion object in the $newdata array. Objects are passed by reference, and therefore changing the value in the feedback generator also changes it in outer scopes.