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

Export of quiz reports does not handle &

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.11.6
    • None
    • Quiz, Reports
    • MOODLE_311_STABLE

    Description

      When downloaded, exported quiz reports should be named like:

      course_shortname-quiz_name-responses.extension

      If the shortname of a course or the name of a quiz module contains an '&' character, when downloaded the export file will not be named correctly and will not have a proper file extension (.csv, .xslx, etc)

      Steps to reproduce:

      • Create a course with a shortname with an ampersand (EG 'Quizzes & stuff')
      • Add a quiz activity with at least one attempt
      • Navigate to the quiz report (grades, responses, or statistics)
      • Attempt to download the table data
      • Observe the download file is "Quizzes amp'
      • Change the course shortname to remove the & (EG 'Quizzes and stuff')
      • Download the quiz report table data and confirm it works normally

      Attachments

        Activity

          People

            Unassigned Unassigned
            benkahn Benjamin Kahn
            Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: