[Rt-commit] r18824 - in rt/3.999/branches/lorzy/lib/RT: Model

clkao at bestpractical.com clkao at bestpractical.com
Tue Mar 17 09:59:24 EDT 2009


Author: clkao
Date: Tue Mar 17 09:59:24 2009
New Revision: 18824

Modified:
   rt/3.999/branches/lorzy/lib/RT/Lorzy/Dispatcher.pm
   rt/3.999/branches/lorzy/lib/RT/Model/Ticket.pm

Log:
catch up with the transaction_obj change.


Modified: rt/3.999/branches/lorzy/lib/RT/Lorzy/Dispatcher.pm
==============================================================================
--- rt/3.999/branches/lorzy/lib/RT/Lorzy/Dispatcher.pm	(original)
+++ rt/3.999/branches/lorzy/lib/RT/Lorzy/Dispatcher.pm	Tue Mar 17 09:59:24 2009
@@ -17,7 +17,7 @@
     my ($self, %args) = @_;
     for (@$rules) {
         push @{$self->{prepared}}, $_
-            if $_->on_condition( $self->ticket_obj, $self->transaction_obj );
+            if $_->on_condition( $self->ticket_obj, $self->transaction );
     }
     return scalar @{$self->{prepared}};
 }
@@ -25,7 +25,7 @@
 sub commit {
     my ($self, %args) = @_;
     for ( @{$self->{prepared}} ) {
-        $_->commit( $self->ticket_obj, $self->transaction_obj );
+        $_->commit( $self->ticket_obj, $self->transaction );
     }
 }
 

Modified: rt/3.999/branches/lorzy/lib/RT/Model/Ticket.pm
==============================================================================
--- rt/3.999/branches/lorzy/lib/RT/Model/Ticket.pm	(original)
+++ rt/3.999/branches/lorzy/lib/RT/Model/Ticket.pm	Tue Mar 17 09:59:24 2009
@@ -2251,7 +2251,7 @@
     my $rules = RT::Ruleset->find_all_rules(
         stage           => 'transaction_batch',
         ticket_obj      => $ticket,
-        transaction_obj => $batch->[0],
+        transaction     => $batch->[0],
         type            => join( ',', map $_->type, grep defined, @{$batch} )
     );
     RT::Ruleset->commit_rules($rules);


More information about the Rt-commit mailing list