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

Importing a even a single item from another course creates many phantom gradebook entries in the new course

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9, 2.0
    • Component/s: Backup, Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      This applies to version 1.9 Beta3 as of today and has been reproduced on a test system with no custom patches.

      As it alters grades and makes entries that can only be eliminated with database commands, I list it as a blocker.

      I can reproduce it by:

      Import a single element from another course (say an assignment)
      Go into "Categories and Items" in the gradebook, and now every assignment from the source course appears as a phantom grade item in the course receiving the import. There is no link to an original assignment in either course.

      In the database, new items are added to the grade_items table for each of these entries. The value of iteminstance is NULL but itemmodule entries are not NULL.

      The only fix for now is to delete these items from the grade_items table; they cannot be deleted from within Moodle.

      I will confirm this on a fresh database when time permits.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08