X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FTicketSystem%2FRT_Internal.pm;h=00398230f28bdbefac10f589adee8412c05771f6;hp=a2cd0246a76f71ca12c8a0a47c5bcaf5dc667a5a;hb=8d4abaa99403699aa5b5f02e899d2ea33980f913;hpb=8127468dc459a8257ab7c15cca10801b9b2a3551 diff --git a/FS/FS/TicketSystem/RT_Internal.pm b/FS/FS/TicketSystem/RT_Internal.pm index a2cd0246a..00398230f 100644 --- a/FS/FS/TicketSystem/RT_Internal.pm +++ b/FS/FS/TicketSystem/RT_Internal.pm @@ -8,7 +8,7 @@ use FS::TicketSystem::RT_Libs; @ISA = qw( FS::TicketSystem::RT_Libs ); -sub sql_customer_tickets { +sub sql_num_customer_tickets { "( select count(*) from tickets join links on ( tickets.id = links.localbase ) where ( status = 'new' or status = 'open' or status = 'stalled' ) @@ -21,11 +21,28 @@ sub num_customer_tickets { $self->SUPER::num_customer_tickets( $custnum, $priority, dbh ); } +sub customer_tickets { + my( $self, $custnum, $limit, $priority ) = ( shift, shift, shift, shift ); + $self->SUPER::customer_tickets( $custnum, $limit, $priority, dbh ); +} + sub href_customer_tickets { my $self = shift; # well, 2 is wrong here but will have to do for now popurl(2).'rt/'. $self->SUPER::href_customer_tickets(@_); } +sub href_new_ticket { + my $self = shift; + # well, 2 is wrong here but will have to do for now + popurl(2).'rt/'. $self->SUPER::href_new_ticket(@_); +} + +sub href_ticket { + my $self = shift; + # well, 2 is wrong here but will have to do for now + popurl(2).'rt/'. $self->SUPER::href_ticket(@_); +} + 1;