[freeside-commits] freeside/FS/FS/TicketSystem RT_External.pm, 1.25.2.6, 1.25.2.7
Ivan,,,
ivan at wavetail.420.am
Wed Sep 23 16:47:49 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/TicketSystem
In directory wavetail.420.am:/tmp/cvs-serv8657
Modified Files:
Tag: FREESIDE_1_7_BRANCH
RT_External.pm
Log Message:
this should fix the occasional extra ticket showing up on wrong customer record
Index: RT_External.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/TicketSystem/RT_External.pm,v
retrieving revision 1.25.2.6
retrieving revision 1.25.2.7
diff -u -d -r1.25.2.6 -r1.25.2.7
--- RT_External.pm 24 Jan 2008 21:19:52 -0000 1.25.2.6
+++ RT_External.pm 23 Sep 2009 23:47:47 -0000 1.25.2.7
@@ -154,14 +154,16 @@
}
my $sql = "
- FROM Tickets
- JOIN Queues ON ( Tickets.Queue = Queues.id )
- JOIN Links ON ( Tickets.id = Links.LocalBase )
- JOIN Users ON ( Tickets.Owner = Users.id )
- $join
- WHERE ( ". join(' OR ', map "Status = '$_'", $self->statuses ). " )
- AND Target = 'freeside://freeside/cust_main/$custnum'
- $where
+ FROM Tickets
+ JOIN Queues ON ( Tickets.Queue = Queues.id )
+ JOIN Users ON ( Tickets.Owner = Users.id )
+ JOIN Links ON ( Tickets.id = Links.LocalBase
+ AND Links.Base LIKE '%/ticket/' || Tickets.id )
+ $join
+
+ WHERE ( ". join(' OR ', map "Status = '$_'", $self->statuses ). " )
+ AND Target = 'freeside://freeside/cust_main/$custnum'
+ $where
";
( $sql, @param );
More information about the freeside-commits
mailing list