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

Unable to attach / embed files to workshop example submission

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.2
    • Component/s: Workshop
    • Labels:
    • Testing Instructions:
      Hide
      1. Create new workshop instance and enable usage of example submissions.
      2. Define the assessment form.
      3. Define an example submission with an image embedded into the text and a file attached.
      4. Make sure the example submission is saved with the image embedded and the file attached correctly.
      Show
      Create new workshop instance and enable usage of example submissions. Define the assessment form. Define an example submission with an image embedded into the text and a file attached. Make sure the example submission is saved with the image embedded and the file attached correctly.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-55289-master-exsubmission

      Description

      When trying to add an example submission with an attachment, I click to add a file and get this:
      "Sorry, none of your current repositories can return files in the required format."

      Debugging mode shows further warnings:

      "Notice: Use of undefined constant FILE_INTERNAL - assumed 'FILE_INTERNAL' in mod/workshop/locallib.php on line 2495"

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Sep/16

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h