Skip to content

Commit

Permalink
MDL-21045, MDL-21046 restore - gradebook categories, letters and outc…
Browse files Browse the repository at this point in the history
…omes are now

restored no matter if user info is enabled or no (as far as they are user-independent)
  • Loading branch information
stronk7 committed Dec 18, 2009
1 parent f7f6e31 commit 64aec42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup/restorelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1729,7 +1729,7 @@ function restore_migrate_old_gradebook($restore,$xml_file) {
$restoreall = true; // set to false if any grade_item is not selected/restored
$importing = !empty($SESSION->restore->importing); // there should not be a way to import old backups, but anyway ;-)

if ($importing || $restore->users == 2) {
if ($importing) {
$restoreall = false;

} else {
Expand Down Expand Up @@ -1920,7 +1920,7 @@ function restore_create_gradebook($restore,$xml_file) {
$restoreall = true; // set to false if any grade_item is not selected/restored or already exist
$importing = !empty($SESSION->restore->importing);

if ($importing || $restore->users == 2) {
if ($importing) {
$restoreall = false;

} else {
Expand Down

0 comments on commit 64aec42

Please sign in to comment.