X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FTransactions_Overlay.pm;h=af72c20a6aeb892630dbff4cd6db63c542b04017;hb=74e058c8a010ef6feb539248a550d0bb169c1e94;hp=3ea8f12a0bcc1f29c2620c98ebe6cd33227d1a7a;hpb=c8cccb4a92adceb943c635fe62dad0d034462ce0;p=freeside.git diff --git a/rt/lib/RT/Transactions_Overlay.pm b/rt/lib/RT/Transactions_Overlay.pm index 3ea8f12a0..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-2005 Best Practical Solutions, LLC +# +# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -22,7 +22,9 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301 or visit their web page on the internet at +# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. # # # CONTRIBUTION SUBMISSION POLICY: @@ -58,11 +60,6 @@ =head1 METHODS -=begin testing - -ok (require RT::Transactions); - -=end testing =cut @@ -89,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.