From: tla Date: Mon, 9 Feb 2015 12:35:57 +0000 (+0100) Subject: store the tradition's new owner as well as the owner's new tradition(s) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=41ebdd4d0d466bb364a78fa6b11bc5f023f06daa;p=scpubgit%2Fstemmatology.git store the tradition's new owner as well as the owner's new tradition(s) --- diff --git a/persistence/lib/Text/Tradition/Directory.pm b/persistence/lib/Text/Tradition/Directory.pm index c57115b..94ae530 100644 --- a/persistence/lib/Text/Tradition/Directory.pm +++ b/persistence/lib/Text/Tradition/Directory.pm @@ -582,8 +582,9 @@ sub _find_gplus { }); foreach my $t (@{ $user->traditions }) { - $user->remove_tradition($t); + $user->remove_tradition($t); $new_user->add_tradition($t); + $self->update($t); } $self->update($user); $self->update($new_user);