[Bps-public-commit] r17461 - sd/trunk/lib/App/SD/Replica/rt

ruz at bestpractical.com ruz at bestpractical.com
Tue Dec 30 21:07:15 EST 2008


Author: ruz
Date: Tue Dec 30 21:07:15 2008
New Revision: 17461

Modified:
   sd/trunk/lib/App/SD/Replica/rt/PullEncoder.pm

Log:
* minor

Modified: sd/trunk/lib/App/SD/Replica/rt/PullEncoder.pm
==============================================================================
--- sd/trunk/lib/App/SD/Replica/rt/PullEncoder.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/rt/PullEncoder.pm	Tue Dec 30 21:07:15 2008
@@ -40,7 +40,7 @@
         $self->sync_source->log(
             "Fetching ticket $id - $counter of " . scalar @tickets
         );
-        $tickets->{$id}->{ticket} = $self->_translate_final_ticket_state(
+        $tickets->{ $id } = $self->_translate_final_ticket_state(
             $self->sync_source->rt->show( type => 'ticket', id => $id )
         );
         push @transactions, @{
@@ -56,7 +56,7 @@
     for my $txn ( sort { $b->{'id'} <=> $a->{'id'} } @transactions ) {
         $txn_counter++;
         $self->sync_source->log("Transcoding transaction  @{[$txn->{'id'}]} - $txn_counter of ". scalar @transactions);
-        my $changeset = $self->transcode_one_txn( $txn, $tickets->{ $txn->{Ticket} }->{ticket} );
+        my $changeset = $self->transcode_one_txn( $txn, $tickets->{ $txn->{Ticket} } );
         $changeset->created( $txn->{'Created'} );
         next unless $changeset->has_changes;
         unshift @changesets, $changeset;



More information about the Bps-public-commit mailing list