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

"save as new question" fails to store files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Questions, Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      From Eloy http://tracker.moodle.org/browse/MDL-16094?focusedCommentId=92196&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_92196

      Aha, found it!

      It is the "save as new question" the one missing the @PLUGINFILE@ conversion !

      To reproduce:

      • create quiz
      • add true/false question with images in question text, general feedback and true and false feedback (save it)
      • edit the question and without changing anything, click on "save a new question"

      Expected result:

      • One new question is created with all the images using @PLUGINFILE@

      Current (wrong) result:

      • One error about URL not found happens (I commented that yesterday at MDL-16345).
      • One new question is created but all the images are using "draftfiles" URLs (the conversion to @PLUGINFILE@ doesn't happen)

      I guess the same will happen with other qtypes, I only tested the true/false one.

      Ciao

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dongsheng Dongsheng Cai
              Reporter:
              dongsheng Dongsheng Cai
              Tester:
              Nobody
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Jun Pataleta, 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:
                24/Nov/10