Skip to content

Commit

Permalink
MDL-14692 groupings restore logic switched - credit goes to Vitor Rocio
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed May 12, 2008
1 parent 354176b commit abe8f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/restorelib.php
Expand Up @@ -3223,7 +3223,7 @@ function restore_grouping_getid($restore, $groupingid) {
//We have to recode the groupid field
$grouping = backup_getid($restore->backup_unique_code, 'groupings', $groupingid);

if ($restore->groups == RESTORE_GROUPS_GROUPINGS or $restore->groups == RESTORE_GROUPINGS_ONLY) {
if (!$restore->groups == RESTORE_GROUPS_GROUPINGS and !$restore->groups == RESTORE_GROUPINGS_ONLY) {
$grouping->new_id = 0;
}
return $grouping;
Expand Down

0 comments on commit abe8f35

Please sign in to comment.