X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FTicketSystem%2FRT_Internal.pm;h=8fce918e07705691008c51d0b5899181306d9d3d;hb=0baccd58d09883fb45df7cc6e56e0904924fc69c;hp=74006f577142ae617d9c3cd297d519158a9604cd;hpb=dda497584a2e12907bba7cf07051fe34ede63b32;p=freeside.git diff --git a/FS/FS/TicketSystem/RT_Internal.pm b/FS/FS/TicketSystem/RT_Internal.pm index 74006f577..8fce918e0 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' ) @@ -16,15 +16,13 @@ sub sql_customer_tickets { )"; } -sub num_customer_tickets { - my( $self, $custnum, $priority ) = ( shift, shift, shift ); - $self->SUPER::new_customer_tickets( $custnum, $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 baseurl { + #my $self = shift; + if ( $RT::URI::freeside::URL ) { + $RT::URI::freeside::URL. 'rt/'; + } else { + 'http://you_need_to_set_RT_URI_freeside_URL_in_SiteConfig.pm/'; + } } 1;