Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r16140: LJSV-904 (ESN refactoring, part 1 // Aft...

Committer: ailyin
LJSV-904 (ESN refactoring, part 1 // After checking "Email me copies of my comments" some part of the code is displayed in Subscription Tracking
section): do not create spurious subscriptions

U   trunk/cgi-bin/LJ/Subscription/GroupSet.pm
Modified: trunk/cgi-bin/LJ/Subscription/GroupSet.pm
===================================================================
--- trunk/cgi-bin/LJ/Subscription/GroupSet.pm	2010-01-26 11:26:37 UTC (rev 16139)
+++ trunk/cgi-bin/LJ/Subscription/GroupSet.pm	2010-01-26 11:42:41 UTC (rev 16140)
@@ -321,7 +321,10 @@
     # must stay.
     foreach my $gkey (@cleaned_groups) {
         push @changed_groups, $gkey;
+        my %props = map { $_ => $self->{'groups'}->{$gkey}->{$_} } @group_cols;
+
         $newset->{'groups'}->{$gkey} = bless({
+            %props,
             'subs' => {},
         }, 'LJ::Subscription::Group');
     }

Tags: andy, livejournal, pm
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments