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

Portfolio export of files embedded in subfolders

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.6.2
    • Portfolio
    • MOODLE_26_STABLE

      While writing unit-tests for MDL-45256, I discovered a bug in portfolio_rewrite_pluginfile_url_callback().

      If a file is stored in a subfolder within the filearea, it's not found by this method. If its path is, say, /media/images/static/photo.png then the function throws "Couldn't find a file from the embedded path info ..." and it expects the file path is / and the filename is media/images/static/photo.png

            Unassigned Unassigned
            mudrd8mz David Mudrák (@mudrd8mz)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.