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

Notice when upgrading multianswer question type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0
    • 3.0
    • Questions, Quiz
    • MOODLE_30_STABLE
    • MOODLE_30_STABLE
    • MDL-51855-master
    • Hide
      1. Create a new course and in default course question category
      2. Build a question bank with many types of questions, including at least multianswer question with a text similar to this one.

        REGULAR
        MCH
        {1:MULTICHOICE_H:=First one#OK~Second one#Wrong~Third one#Wrong~Fourth one#Wrong}
        MCV
        {1:MULTICHOICE_V:=First one#OK~Second one#Wrong~Third one#Wrong~Fourth one#Wrong}
        MC
        {1:MULTICHOICE:=First one#OK~Second one#Wrong~Third one#Wrong~Fourth one#Wrong}
        

      3. Put the question in a quiz where you set quiz shuffle ON.
      4. Do a version bump and run the upgrade.
      5. Make sure you don't get any offset errors.
      6. Backup this course and execute the restore.
      7. Make sure you don't get any offset errors.
      Show
      Create a new course and in default course question category Build a question bank with many types of questions, including at least multianswer question with a text similar to this one. REGULAR MCH {1:MULTICHOICE_H:=First one#OK~Second one#Wrong~Third one#Wrong~Fourth one#Wrong} MCV {1:MULTICHOICE_V:=First one#OK~Second one#Wrong~Third one#Wrong~Fourth one#Wrong} MC {1:MULTICHOICE:=First one#OK~Second one#Wrong~Third one#Wrong~Fourth one#Wrong} Put the question in a quiz where you set quiz shuffle ON . Do a version bump and run the upgrade. Make sure you don't get any offset errors. Backup this course and execute the restore. Make sure you don't get any offset errors.

      I noticed this when upgrading:

      Notice: Undefined offset: 4 in /home/fred/www/repositories/sm/moodle/question/type/multianswer/db/upgrade.php on line 79
      Call Stack
      #	Time	Memory	Function	Location
      1	0.0020	243192	{main}( )	../index.php:0
      2	12.1848	26163776	upgrade_noncore( )	../index.php:677
      3	12.6323	26203368	upgrade_plugins( )	../upgradelib.php:1641
      4	12.7008	26570120	xmldb_qtype_multianswer_upgrade( )	../upgradelib.php:545
      

      Is that taken care of or should I raise an issue for it?

            lameze Simey Lameze
            fred Frédéric Massart
            Tim Hunt Tim Hunt
            Dan Poltawski Dan Poltawski
            cameron1729 cameron1729
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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