X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FQueues.pm;h=d36b24d0590aa95d6f56f52b49fce1e3b8e6b6d1;hb=07bf36bccc4979b12db49b0f71524de4296f3717;hp=f5cd2b2b50e547185abfcdd3bfe4ebb223e577f7;hpb=e9e0cf0989259b94d9758eceff448666a2e5a5cc;p=freeside.git diff --git a/rt/lib/RT/Queues.pm b/rt/lib/RT/Queues.pm index f5cd2b2b5..d36b24d05 100755 --- a/rt/lib/RT/Queues.pm +++ b/rt/lib/RT/Queues.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -69,11 +69,10 @@ package RT::Queues; use strict; use warnings; +use base 'RT::SearchBuilder'; use RT::Queue; -use base 'RT::SearchBuilder'; - sub Table { 'Queues'} # {{{ sub _Init @@ -83,8 +82,8 @@ sub _Init { # By default, order by name $self->OrderBy( ALIAS => 'main', - FIELD => 'Name', - ORDER => 'ASC'); + FIELD => 'Name', + ORDER => 'ASC'); return ($self->SUPER::_Init(@_)); } @@ -92,7 +91,7 @@ sub _Init { sub Limit { my $self = shift; my %args = ( ENTRYAGGREGATOR => 'AND', - @_); + @_); $self->SUPER::Limit(%args); } @@ -113,19 +112,6 @@ sub AddRecord { $self->{'rows'}++; } - - - -=head2 NewItem - -Returns an empty new RT::Queue item - -=cut - -sub NewItem { - my $self = shift; - return(RT::Queue->new($self->CurrentUser)); -} RT::Base->_ImportOverlays(); 1;