I'm having a problem. If I say to a stage that I want a restriction (Completed Activitity) and I choose a quiz, then it goes wrong. If I do the quiz and thereby meet the conditions (get a grade), TreasureHunt does not accept that.
Moodle has a non binary state other than COMPLETION_UNCOMPLETE and COMPLETION_COMPLETE.
Comparison now is status !== COMPLETION_UNCOMPLETE
Fixed in c195e5905cf8a935e63be2873100e81bc99e675e
An user reported: