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

Quizzes with ghost questions affecting the grades

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.3.3, 2.4
    • Quiz
    • None
    • MOODLE_23_STABLE, MOODLE_24_STABLE

      Some quizzes coming from backup and restore randomly have 'ghost' questions that affect the grades. For instance an affected quiz is graded out of 12 but there are only 6 questions set to 1 grade
      each. the bad data <question values =0> came from a
      restored quiz where a teacher deleted some questions from the
      quiz, then added others... so the deleted questions are the ones that
      were retained in the instances table with a question value of 0 but
      still having a grade of 1.

      Use the following sql:

      SELECT distinct(qq.quiz) as "quiz id", q.timeopen, q.timeclose, c.shortname
      as "course shortname", c.id as "coursid" FROM "mdl_quiz_question_instances"
      as qq
      join mdl_quiz as q on q.id = qq.quiz
      join mdl_course as c on c.id = q.course
      WHERE "question" = '0'
      order by q.timeclose

            timhunt Tim Hunt
            corleone Raymond Antonio
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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