Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.1, 2.2
-
Component/s: Quiz
-
Labels:None
-
Testing Instructions:
-
Affected Branches:MOODLE_21_STABLE, MOODLE_22_STABLE
-
Fixed Branches:MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
Pull from Repository:
-
Pull Master Branch:
-
Pull Master Diff URL:
Description
Checking foreign keys violations I realized a line in mod/quiz/db/install.xml seems wrong :
<KEY NAME="uniqueid" TYPE="foreign-unique" FIELDS="uniqueid" REFTABLE="question_attempts" REFFIELDS="id" PREVIOUS="userid"/>
to me it seems that REFFIELDS should be "questionusageid" and not "id", am I wrong ?
Of course it doesn't really matter and this will not cause any harm
But what surprise me is that I am surely not the first Moodle user to look at foreign keys violations since Moodle 2.1 is out ???