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

Grade item calculation formula not restored properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.9.1
    • 1.9
    • Backup
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

      Calculation formulas are not properly restored, since they are not "normalized" (generating an Error in the gradebook).

      In backup/backuplib.php the following code:

      // use [idnumber] in calculation instead of giXXX#
      fwrite ($bf,full_tag("CALCULATION",5,false,$grade_item->get_calculation()));

      does not have a correspondance in backup/restorelib.php

      I suppose that the set_calculation(...) function must be called somewhere.

            skodak Petr Skoda
            vjr Vitor Rocio (Inactive)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            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.