The capquiz_attempt table has a field named user_id. In CAPQuiz, we are treating this as a the id for a capquiz_user. However, in the DB file, the REFTABLE value says user, meaning a Moodle user!
This needs to be fixed by updating the DB file and writing an upgrade script.
The
capquiz_attempt
table has a field nameduser_id
. In CAPQuiz, we are treating this as a theid
for acapquiz_user
. However, in the DB file, theREFTABLE
value saysuser
, meaning a Moodle user!This needs to be fixed by updating the DB file and writing an upgrade script.