Skip to content

Commit

Permalink
MDL-65959 badge: Reset external_identifiers if backpack details modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Dias committed Oct 26, 2020
1 parent 8308d10 commit f451ef0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion badges/backpacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@
} else if ($data = $form->get_data()) {
require_sesskey();
if (!empty($data->id)) {
badges_update_site_backpack($data->id, $data);
$id = $data->id;
badges_update_site_backpack($id, $data);
// Apart from the password, any change here would result in an error in other parts of the badge systems.
// In order to negate this, we restart any further mapping from scratch.
badges_external_delete_mappings($id);
} else {
badges_create_site_backpack($data);
}
Expand Down

0 comments on commit f451ef0

Please sign in to comment.