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

(maybe) incorrect use of itemid for file_storage in online type assignment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0
    • 2.0
    • Files API
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE
    • Easy

      In mod/assignment/type/online/assignment.class.php, line 109, there's the following line:

      $text = file_rewrite_pluginfile_urls($submission->data1, 'pluginfile.php', $this->context->id, 'assignment_online_submission', $this->assignment->id);

      which seems to indicate that the assignment id is being used as the item id - shouldn't be this the user id, since the context id already includes the id of the assignment?

            samhemelryk Sam Hemelryk
            mjollnir Penny Leach (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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