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

hints are not being restored by new question engine code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.2
    • Fix Version/s: 2.1.1, 2.2
    • Component/s: Backup, Questions
    • Labels:
    • Testing Instructions:
      Hide

      1. Create some questions with hints in a course.
      2. Backup the course.
      3. Restore the course
      4. Verify that the hints have come through the process correctly.

      Show
      1. Create some questions with hints in a course. 2. Backup the course. 3. Restore the course 4. Verify that the hints have come through the process correctly.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      It seems that hints are not being restored in the new question engine code.

      There is an obvious typos or ommissions in process_question_hint in backup/moodle2/restore_stepslib.php '$newitemid = $DB->insert_record('question_answers', $data);' at line 2486 but I was unable to fix this quickly as I am not that familiar with the restore code.

        Attachments

          Activity

            People

            • Assignee:
              timhunt Tim Hunt
              Reporter:
              jamiesensei Jamie Pratt
              Integrator:
              Petr Skoda
              Tester:
              Marina Glancy
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias, Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                1/Aug/11