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

Cannot export tab delimited plaintext files, always exports as comma delimited

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.5, 2.1.2
    • 2.0.4, 2.1.1, 2.2
    • Gradebook
    • Any
    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • MDL-29126_export_separator
    • Hide

      Looks like the problem comes from the separator type not being set after the submission of the first export page.

      This is fixed by changing 'moodle/grade/export/txt/index.php' at line 54:
      from...


      $export = new grade_export_txt($course, $currentgroup, '', false, false, $data->display, $data->decimals);


      to


      $export = new grade_export_txt($course, $currentgroup, '', false, false, $data->display, $data->decimals, $data->separator);


      Show
      Looks like the problem comes from the separator type not being set after the submission of the first export page. This is fixed by changing 'moodle/grade/export/txt/index.php' at line 54: from... $export = new grade_export_txt($course, $currentgroup, '', false, false, $data->display, $data->decimals); to $export = new grade_export_txt($course, $currentgroup, '', false, false, $data->display, $data->decimals, $data->separator);
    • Hide

      Go to 'Gradebook -> Export -> Plain text file'
      Select 'tab' as the separator type
      Export your grades
      Check that the exported file uses tabs as separators

      Show
      Go to 'Gradebook -> Export -> Plain text file' Select 'tab' as the separator type Export your grades Check that the exported file uses tabs as separators

      If you attempt to export the grade book as a tab delimited plain text file it will instead export as a comma delimited file.

            andyjdavis Andrew Davis
            mulroony Patrick Mulrooney (Inactive)
            Sam Hemelryk Sam Hemelryk
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Ankit Agarwal Ankit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.