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

Randomsamatch qtype should store used files internaly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.5.4, 2.6.1
    • Fix Version/s: DEV backlog
    • Component/s: Questions
    • Labels:
    • Affected Branches:
      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

              • Assignee:
                Unassigned
                Reporter:
                jmvedrine Jean-Michel Vedrine
                Peer reviewer:
                Tim Hunt
                Participants:
                Component watchers:
                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: