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

Random questions restored from 3.9 backup shows error in the edit quiz screen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.3 regressions, 4.3
    • Backup, Questions, Quiz

      When a quiz activity with random question is restored from 3.9 backup, the edit question screen shows an error and it couldn't be edited.

      \ Exception \ ErrorException (E_WARNING)
      Undefined array key "filter"
      $toform->category = $filterconditions['filter']['category']['values'][0];
      

       
      It looks there is no "$filterconditions['filter']['category']['values']" set for restored record.

      https://github.com/moodle/moodle/blob/513f3b02c76e0321b3c57ca8014d3100b4da8d94/mod/quiz/backup/moodle2/restore_quiz_stepslib.php#L361

       

       

            Unassigned Unassigned
            tomotsuyuki Tomo Tsuyuki
            Votes:
            11 Vote for this issue
            Watchers:
            32 Start watching this issue

              Created:
              Updated:

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