From 7114ddae6f6595d72b7e17cdaefb9d7f915a8b7b Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 6 Dec 2004 14:15:34 +0000 Subject: [PATCH] ... and this last piece of sql too --- FS/FS/TicketSystem/RT_External.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.11.0