projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ticket_system-appointment-custom_field, RT#34237
[freeside.git]
/
FS
/
FS
/
TicketSystem
/
RT_Internal.pm
diff --git
a/FS/FS/TicketSystem/RT_Internal.pm
b/FS/FS/TicketSystem/RT_Internal.pm
index
6fb2c18
..
b70ac53
100644
(file)
--- a/
FS/FS/TicketSystem/RT_Internal.pm
+++ b/
FS/FS/TicketSystem/RT_Internal.pm
@@
-111,7
+111,7
@@
properly.
# create an RT::Tickets object for a specified custnum or svcnum
sub _tickets_search {
# create an RT::Tickets object for a specified custnum or svcnum
sub _tickets_search {
- my( $self, $type, $number, $limit, $priority, $status ) = @_;
+ my( $self, $type, $number, $limit, $priority, $status
, $queueid
) = @_;
$type =~ /^Customer|Service$/ or die "invalid type: $type";
$number =~ /^\d+$/ or die "invalid custnum/svcnum: $number";
$type =~ /^Customer|Service$/ or die "invalid type: $type";
$number =~ /^\d+$/ or die "invalid custnum/svcnum: $number";
@@
-159,6
+159,8
@@
sub _tickets_search {
join(' OR ', map { "Status = '$_'" } @statuses).
' ) ';
join(' OR ', map { "Status = '$_'" } @statuses).
' ) ';
+ $rtql .= " AND Queue = $queueid " if $queueid;
+
warn "$me _customer_tickets_search:\n$rtql\n" if $DEBUG;
$Tickets->FromSQL($rtql);
warn "$me _customer_tickets_search:\n$rtql\n" if $DEBUG;
$Tickets->FromSQL($rtql);