Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-33924

typo in quiz table def

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.1.7, 2.2.4, 2.3.1
    • 2.1, 2.2
    • Quiz
    • None
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Hide

      1. Go to admin -> development -> XMLDB
      2. Run the check foreign keys script.
      3. Verify the results relating to quiz_attempts -> question_usages makes sense.

      Show
      1. Go to admin -> development -> XMLDB 2. Run the check foreign keys script. 3. Verify the results relating to quiz_attempts -> question_usages makes sense.

      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 ???

            timhunt Tim Hunt
            jmvedrine Jean-Michel Vedrine
            Dan Poltawski Dan Poltawski
            Aparup Banerjee Aparup Banerjee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.