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

Randomsamatch qtype should store used files internaly

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.5.4, 2.6.1
    • DEV backlog
    • 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, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Raquel Ortega, Sabina Abellan, Sander Bangma, Sara Arjona (@sarjona), Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: