X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FTicketSystem%2FRT_Internal.pm;h=d24a96c045053c3c6a26d9778ba5d9d07ca6c1ea;hb=5e05724a635a22776f1b973f5d7e77989da4e048;hp=00398230f28bdbefac10f589adee8412c05771f6;hpb=8d4abaa99403699aa5b5f02e899d2ea33980f913;p=freeside.git diff --git a/FS/FS/TicketSystem/RT_Internal.pm b/FS/FS/TicketSystem/RT_Internal.pm index 00398230f..d24a96c04 100644 --- a/FS/FS/TicketSystem/RT_Internal.pm +++ b/FS/FS/TicketSystem/RT_Internal.pm @@ -16,32 +16,13 @@ sub sql_num_customer_tickets { )"; } -sub num_customer_tickets { - my( $self, $custnum, $priority ) = ( shift, shift, shift ); - $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(@_); +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;