import torrus 1.0.9
[freeside.git] / rt / lib / RT / Transactions_Overlay.pm
index 3ea8f12..af72c20 100644 (file)
@@ -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
 #                                          <jesse@bestpractical.com>
 # 
 # (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:
 
 =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.