From: tla Date: Mon, 9 Feb 2015 12:22:29 +0000 (+0100) Subject: remove tradition from old user too X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e9b6e10d43da7b26a45c6b06368d46ce7d31e147;p=scpubgit%2Fstemmatology.git remove tradition from old user too --- diff --git a/persistence/lib/Text/Tradition/Directory.pm b/persistence/lib/Text/Tradition/Directory.pm index 451fbf4..c57115b 100644 --- a/persistence/lib/Text/Tradition/Directory.pm +++ b/persistence/lib/Text/Tradition/Directory.pm @@ -582,9 +582,10 @@ sub _find_gplus { }); foreach my $t (@{ $user->traditions }) { + $user->remove_tradition($t); $new_user->add_tradition($t); } - $self->update(@{ $user->traditions }); + $self->update($user); $self->update($new_user); # $self->delete_user({ username => $user->id });