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

Grade CSV import doesn't respect quoted fields and export doesn't quote fields when required

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0.1, 2.2.2
    • Fix Version/s: None
    • Component/s: Gradebook
    • Labels:
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_22_STABLE

      Description

      While peer-reviewing MDL-25887 I found there was a wickedly nasty wee bug whereby Moodle doesn't respect quoted fields within a CSV file when parsing it for grade import.
      If a field is quoted and contains a separator character then it is processed as two fields.

      On a related matter I would be surprised if Grade export was quoting fields if they contained the separator as well.

      Cheers
      Sam

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abgreeve Adrian Greeve
              Reporter:
              samhemelryk Sam Hemelryk
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: