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

Files for question hints are not deleted when the question is deleted, nor moved when the question is moved to another context

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.1.4, 2.2.1
    • 2.1.5, 2.2.2
    • Questions
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • Hide

      1. Create one of each question type, adding an image to every HTML editor on the question editing form. (Well, ideally that is what you would do. If you can't be bothered, add an image to at least one hint for every question editing form that has hints.)

      2. Move all those questions to a different context in the question bank. For example, move the question category that contains them from the course level of the question bank to the quiz level, or to the system level.

      3. Verify that all the images in the hints are still there.

      4. If you are able, then delete all these questions, and verify that the corresponding files are gone from the files table. However, I think the only way to verify that is to look directly in the DB.

      Show
      1. Create one of each question type, adding an image to every HTML editor on the question editing form. (Well, ideally that is what you would do. If you can't be bothered, add an image to at least one hint for every question editing form that has hints.) 2. Move all those questions to a different context in the question bank. For example, move the question category that contains them from the course level of the question bank to the quiz level, or to the system level. 3. Verify that all the images in the hints are still there. 4. If you are able, then delete all these questions, and verify that the corresponding files are gone from the files table. However, I think the only way to verify that is to look directly in the DB.

    Description

      Summary says it all really.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            timhunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Adrian Greeve Adrian Greeve
            Safat Shahin, Tim Hunt, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Sabina Abellan, Sara Arjona (@sarjona), Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/Mar/12