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

stored_file->get_author returns the wrong information

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.1, 2.2
    • Fix Version/s: 2.0.6, 2.1.3
    • Component/s: Files API, Unit tests
    • Labels:
      None

      Description

      From the code (/moodle/lib/filestorage/stored_file.php):

      454: public function get_author() {
      455: return $this->file_record->license;
      456: }

      NOTE: I selected Unit Tests as one of the components because CLEARLY some are missing/broken to let something as obviously incorrect as this slip through.....

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              jmlsteele Jody Steele
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                28/Nov/11