X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FReminders.pm;h=e3222e35c8f3e20c3567e3fe2f2530fc4674b673;hb=a816e075c54631250faed653d4ec7b69f727e93a;hp=f99fbf7c1b2fdb5ad46e9b5f0e071ffe68c826ff;hpb=ef20b2b6b1feb47ad02b5ff7525f1a0fd11d0fa4;p=freeside.git diff --git a/rt/lib/RT/Reminders.pm b/rt/lib/RT/Reminders.pm index f99fbf7c1..e3222e35c 100644 --- a/rt/lib/RT/Reminders.pm +++ b/rt/lib/RT/Reminders.pm @@ -1,8 +1,8 @@ # BEGIN BPS TAGGED BLOCK {{{ # # COPYRIGHT: -# -# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +# +# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -24,7 +24,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 or visit their web page on the internet at -# http://www.gnu.org/copyleft/gpl.html. +# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. # # # CONTRIBUTION SUBMISSION POLICY: @@ -45,6 +45,7 @@ # those contributions and any derivatives thereof. # # END BPS TAGGED BLOCK }}} + package RT::Reminders; use base qw/RT::Base/; @@ -87,10 +88,11 @@ sub Collection { my $self = shift; my $col = RT::Tickets->new($self->CurrentUser); - my $query = 'Queue = "'. $self->TicketObj->QueueObj->Name .'" AND Type = "reminder"'; - $query .= ' AND RefersTo = "'.$self->Ticket.'"'; + my $query = 'Type = "reminder" AND RefersTo = "'.$self->Ticket.'"'; $col->FromSQL($query); + + $col->OrderBy( FIELD => 'Due' ); return($col); }