[freeside-commits] freeside/FS/FS/TicketSystem RT_External.pm, 1.30, 1.31
Ivan,,,
ivan at wavetail.420.am
Wed Nov 14 15:10:27 PST 2007
Update of /home/cvs/cvsroot/freeside/FS/FS/TicketSystem
In directory wavetail:/tmp/cvs-serv12192/FS/FS/TicketSystem
Modified Files:
RT_External.pm
Log Message:
add link to resolved tickets too
Index: RT_External.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/TicketSystem/RT_External.pm,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- RT_External.pm 25 Oct 2007 19:01:13 -0000 1.30
+++ RT_External.pm 14 Nov 2007 23:10:25 -0000 1.31
@@ -173,18 +173,28 @@
}
sub href_customer_tickets {
- my( $self, $custnum, $priority ) = @_;
+ my( $self, $custnum ) = ( shift, shift );
+ my( $priority, @statuses);
+ if ( ref($_[0]) ) {
+ my $opt = shift;
+ $priority = $opt->{'priority'};
+ @statuses = $opt->{'statuses'} ? @{$opt->{'statuses'}} : $self->statuses;
+ } else {
+ $priority = shift;
+ @statuses = $self->statuses;
+ }
#my $href = $self->baseurl;
#i snarfed this from an RT bookmarked search, then unescaped (some of) it with
#perl -npe 's/%([0-9A-F]{2})/pack('C', hex($1))/eg;'
- my $href .=
+ #$href .=
+ my $href =
"Search/Results.html?Order=ASC&".
"Query= MemberOf = 'freeside://freeside/cust_main/$custnum' ".
#" AND ( Status = 'open' OR Status = 'new' OR Status = 'stalled' )"
- " AND ( ". join(' OR ', map "Status = '$_'", $self->statuses ). " ) "
+ " AND ( ". join(' OR ', map "Status = '$_'", @statuses ). " ) "
;
if ( defined($priority) && $field && $priority_field_queue ) {
More information about the freeside-commits
mailing list