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

Selecting no Grades in gradebook export returns all grades

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.10
    • 1.9.11
    • Gradebook
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

    Description

      When exporting gradebook, and choosing no grade items, the preview shows only the user data fields, but when the actual file is downloaded, all of the grade items are included. Looking at the code, in /grade/export/lib.php in the grade_export function I see a place where if the itemlist provided is empty, it populates the columns property with all available grade items. This seems counter intuitive. I'm attaching a patch that removes this code, and seems to solve the problem for me. I'm wondering if anyone else has experienced this problem or sees any problems with removing this code.

      Attachments

        Activity

          People

            andyjdavis Andrew Davis
            inceebee Nate Baxley
            Nobody Nobody
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              21/Feb/11