mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 21:45:37 +02:00
MDL-49257 grades: apply freeze when restoring with contents deleting
This commit is contained in:
parent
38cb73a47f
commit
fd36588fb6
@ -148,7 +148,7 @@ class restore_gradebook_structure_step extends restore_structure_step {
|
||||
if ($target == backup::TARGET_CURRENT_DELETING || $target == backup::TARGET_EXISTING_DELETING) {
|
||||
set_config('gradebook_calculations_freeze_' . $this->get_courseid(), null);
|
||||
}
|
||||
if (!empty($data['calculations_freeze']) && $this->get_task()->get_target() == backup::TARGET_NEW_COURSE) {
|
||||
if (!empty($data['calculations_freeze'])) {
|
||||
if ($target == backup::TARGET_NEW_COURSE || $target == backup::TARGET_CURRENT_DELETING ||
|
||||
$target == backup::TARGET_EXISTING_DELETING) {
|
||||
set_config('gradebook_calculations_freeze_' . $this->get_courseid(), $data['calculations_freeze']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user