fix typo
[freeside.git] / FS / FS / TicketSystem / RT_Internal.pm
index ec0c3f7..a2cd024 100644 (file)
@@ -2,6 +2,9 @@ package FS::TicketSystem::RT_Internal;
 
 use strict;
 use vars qw( @ISA );
+use FS::UID qw(dbh);
+use FS::CGI qw(popurl);
+use FS::TicketSystem::RT_Libs;
 
 @ISA = qw( FS::TicketSystem::RT_Libs );
 
@@ -13,5 +16,16 @@ sub sql_customer_tickets {
    )";
 }
 
+sub num_customer_tickets {
+  my( $self, $custnum, $priority ) = ( shift, shift, shift );
+  $self->SUPER::num_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(@_);
+}
+
 1;