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

The export_file function in privacy/classes/tests/request/content_writer.php doesn't work with more than one file with the same name

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 3.9
    • Fix Version/s: None
    • Component/s: Privacy
    • Labels:
      None
    • Affected Branches:
      MOODLE_39_STABLE

      Description

      If the testing scenario has more than one file with the same name the function export_file (privacy/classes/tests/request/content_writer.php) only returns one file. This is happen because the filepath is the same and the function returns $current->data[$filepath] = $file;

      This was discovered testing MDL-67798 when the user added one more file with the same name.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              cescobedo Carlos Escobedo
              Participants:
              Component watchers:
              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: