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

xml file exported from gradebook should import back into the gradebook with no errors.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.5.6, 2.6.3
    • Component/s: Gradebook
    • Labels:
    • Testing Instructions:
      Hide
      1. Export the gradebook as an xml file.
        1. Choose or create a course.
        2. Make sure that all students enrolled have the ID number field filled out.
        3. Create or edit an activity (one that will produce grades) and make sure that the ID number (Under "Common module settings") is filled out.
        4. Go to a course and then [Administration ► Grade administration ► Export ► XML file].
        5. Make sure that the activity that you edited is show as selected under "Grade items to be included". Click submit.
        6. If you see no preview rows with student names then double check your settings. Click the download button.
      2. Edit the file.
        1. Open up the xml file in an editor.
        2. Change some grades around. Make sure that at least one grade is just a dash "-".
      3. Upload the xml file.
        1. Go to a course and then to [Administration ► Grade administration ► Import ► XML file].
        2. Upload the edited xml file.
        3. Ensure that there are no errors.
      Show
      Export the gradebook as an xml file. Choose or create a course. Make sure that all students enrolled have the ID number field filled out. Create or edit an activity (one that will produce grades) and make sure that the ID number (Under "Common module settings") is filled out. Go to a course and then [Administration ► Grade administration ► Export ► XML file] . Make sure that the activity that you edited is show as selected under "Grade items to be included". Click submit. If you see no preview rows with student names then double check your settings. Click the download button. Edit the file. Open up the xml file in an editor. Change some grades around. Make sure that at least one grade is just a dash "-". Upload the xml file. Go to a course and then to [Administration ► Grade administration ► Import ► XML file] . Upload the edited xml file. Ensure that there are no errors.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-45037-master

      Description

      When exporting the gradebook in an xml format, it will mark unmarked items with a dash "-". When trying to import this back in, it will produce a "Supplied grade is invalid" error.

      I think it is fair that exported files should be able to be imported again with no problems.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14