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

Equella repository needs to set field-source field correctly and use it to indicate source file too

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Repositories
    • Labels:

      Description

      Following on from MDL-33513

      repository/equella/lib.php needs two new functions:

      function get_file_source_info($filepath)
      .... returns 'Equella: originalfilename.ext' which came from filepicker which may not be the current name in Moodle.

      function get_reference_details($reference, $filestatus = 0)
      .... returns the data from the associated file->source field

      (I just tried to do this quickly myself but I'm getting a bit lost in the repository woods!)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marina Marina Glancy
              Reporter:
              dougiamas Martin Dougiamas
              Peer reviewer:
              Martin Dougiamas
              Integrator:
              Dan Poltawski
              Tester:
              Dan Poltawski
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Jun/12