correct ticket order
[freeside.git] / FS / FS / TicketSystem / RT_Internal.pm
index ec0c3f7..8fce918 100644 (file)
@@ -2,10 +2,13 @@ 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 );
 
-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' )
@@ -13,5 +16,14 @@ sub sql_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;