Details
Description
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.
Issue Links
| This issue is duplicated by: | ||||
| MDL-15524 | Manual grade items with calculations not restoring properly. |
|
|
|
Could you please test the latest weekly? It should be already fixed.