From: ivan Date: Mon, 6 Dec 2004 14:15:34 +0000 (+0000) Subject: ... and this last piece of sql too X-Git-Tag: BEFORE_FINAL_MASONIZE~816 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=7114ddae6f6595d72b7e17cdaefb9d7f915a8b7b ... and this last piece of sql too --- diff --git a/FS/FS/TicketSystem/RT_External.pm b/FS/FS/TicketSystem/RT_External.pm index 26420ded7..3bb1991f5 100644 --- a/FS/FS/TicketSystem/RT_External.pm +++ b/FS/FS/TicketSystem/RT_External.pm @@ -50,7 +50,8 @@ sub num_customer_tickets { } my $sql = " - select count(*) from tickets + select count(*) from tickets + join links on ( tickets.id = links.localbase ) where ( status = 'new' or status = 'open' or status = 'stalled' ) and target = 'freeside://freeside/cust_main/$custnum' $priority_sql