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

Export to portfolio broken on Assignment grading screen

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.5.4, 3.6.2
    • Fix Version/s: None
    • Component/s: Assignment, Portfolio
    • Labels:
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE

      Description

      To reproduce

      • Enable portfolios
      • Enable file export portfolio (enabled and visible)
      • Create an Assignment, upload a test assignment for a user etc. 
      • Show the grading screen
      • The submission(s) now say 'Export to portfolio' underneat
      • click the option

      Error, "sorry the requested file could not be found"

      Basic analysis...

      It's going wrong in mod/assign/locallib.php in function load_data() around line 9252. A check is made that the requester's user id and the uploader's id (the student) are the same. Which they never will be. The failure throws the Exception. 

      If the student views the Assignment, they see the link for their own file and it works fine (as expected) 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                howardsmiller Howard Miller
                Participants:
                Component watchers:
                Damyon Wiese, Adrian Greeve, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: