mirror of
https://github.com/moodle/moodle.git
synced 2025-02-08 09:02:07 +01:00
MDL-28156 restore - support restoring files without grade items
This commit is contained in:
parent
f6f6138379
commit
c8fbcaab1d
@ -323,7 +323,8 @@ class restore_gradebook_structure_step extends restore_structure_step {
|
||||
|
||||
// We need to update the calculations for calculated grade items that may reference old
|
||||
// grade item ids using ##gi\d+##.
|
||||
list($sql, $params) = $DB->get_in_or_equal(array_values($mappings), SQL_PARAMS_NAMED);
|
||||
// $mappings can be empty, use 0 if so (won't match ever)
|
||||
list($sql, $params) = $DB->get_in_or_equal(array_values($mappings), SQL_PARAMS_NAMED, 'param', true, 0);
|
||||
$sql = "SELECT gi.id, gi.calculation
|
||||
FROM {grade_items} gi
|
||||
WHERE gi.id {$sql} AND
|
||||
|
Loading…
x
Reference in New Issue
Block a user