mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-50757 gradebook: Update fix for pre 2.8 upgrades.
Moodle installations that updated before the 2.8 grade push were being flagged for a gradebook freeze. This was resulting in calculated grades being shown as different to how they were displayed before the upgrade. This fix retains the original grade value.
This commit is contained in:
parent
e5eefbbf01
commit
316c560cc5
3 changed files with 81 additions and 7 deletions
|
@ -4061,6 +4061,8 @@ function xmldb_main_upgrade($oldversion) {
|
|||
if ($oldversion < 2014111000.00) {
|
||||
// Coming from 2.7 or older, we need to flag the step minmaxgrade to be ignored.
|
||||
set_config('upgrade_minmaxgradestepignored', 1);
|
||||
// Coming from 2.7 or older, we need to flag the step for changing calculated grades to be regraded.
|
||||
set_config('upgrade_calculatedgradeitemsonlyregrade', 1);
|
||||
|
||||
// Main savepoint reached.
|
||||
upgrade_main_savepoint(true, 2014111000.00);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue