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

Randomsamatch qtype should store used files internaly

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 2.5.4, 2.6.1
    • None
    • Questions
    • MOODLE_25_STABLE, MOODLE_26_STABLE

    Description

      This is a follow-up of MDL-27414 where the randomsamatch qtype has been converted to the new question engine.
      Now the question text of shortanswer questions used in a randomsamatch attempt are stored in the attempt data at attempt start, but the images are not stored
      So to reproduce the problem

      • As a teacher create 3 short answer questions including one image in question text
      • create a randomsamatch question with "Number of questions to select" equal to 3
      • include this randomsamatch question in a quiz
      • as a student attempt this quiz
      • as a teacher delete one of the short answer questions
      • either as a teacher or as the student review the student attempt, the image is missing.

      Of course this is somewhat of an edge case !

      • the randomsamatch question is no utterly broken as it was in 1.9 in the same scenario because only the image is missing.
      • we can object it's the teacher responsability no to screw things like that

      But it would be better to fix the problem

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jmvedrine Jean-Michel Vedrine
              Tim Hunt Tim Hunt
              Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: