X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FTransactions_Overlay.pm;h=af72c20a6aeb892630dbff4cd6db63c542b04017;hb=e960748681b0fc8f131739a509e9041dabb3eeb7;hp=1429efa441c5e4029b49cfa383e9ba0fa2c4204b;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2;p=freeside.git diff --git a/rt/lib/RT/Transactions_Overlay.pm b/rt/lib/RT/Transactions_Overlay.pm index 1429efa44..af72c20a6 100644 --- a/rt/lib/RT/Transactions_Overlay.pm +++ b/rt/lib/RT/Transactions_Overlay.pm @@ -1,8 +1,8 @@ # BEGIN BPS TAGGED BLOCK {{{ # # COPYRIGHT: -# -# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC +# +# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -45,6 +45,7 @@ # those contributions and any derivatives thereof. # # END BPS TAGGED BLOCK }}} + =head1 NAME RT::Transactions - a collection of RT Transaction objects @@ -59,11 +60,6 @@ =head1 METHODS -=begin testing - -ok (require RT::Transactions); - -=end testing =cut @@ -90,32 +86,6 @@ sub _Init { } # }}} -=head2 Limit - -A wrapper around SUPER::Limit to catch migration issues - -=cut - -sub Limit { - my $self = shift; - my %args = (@_); - - if ($args{'FIELD'} eq 'Ticket') { - Carp::cluck("Historical code calling RT::Transactions::Limit with a 'Ticket' at (". join(":",caller)."). This deprecated API will be deleted in 3.6"); - $self->SUPER::Limit(FIELD => 'ObjectType', OPERATOR => '=', VALUE =>'RT::Ticket'); - $args{'FIELD'} = 'ObjectId'; - $self->SUPER::Limit(%args); - - } else { - - $self->SUPER::Limit(%args); - } - - -} - - - =head2 LimitToTicket TICKETID Find only transactions for the ticket whose id is TICKETID.