summaryrefslogtreecommitdiff
path: root/FS/FS/TicketSystem/RT_External.pm
diff options
context:
space:
mode:
authorivan <ivan>2004-12-09 12:18:32 +0000
committerivan <ivan>2004-12-09 12:18:32 +0000
commit3b121dac62c91f6200c40ceb761a40b2e4e0db31 (patch)
tree848613dc9f5b7b095c192f11c8ce3b59b1676592 /FS/FS/TicketSystem/RT_External.pm
parentc5c95d5ea9e8de64da701cf679a7a4fc2db6ccd3 (diff)
narrow select to avoid pickup up wrong id field
Diffstat (limited to 'FS/FS/TicketSystem/RT_External.pm')
-rw-r--r--FS/FS/TicketSystem/RT_External.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/TicketSystem/RT_External.pm b/FS/FS/TicketSystem/RT_External.pm
index 5424a71..204e7f4 100644
--- a/FS/FS/TicketSystem/RT_External.pm
+++ b/FS/FS/TicketSystem/RT_External.pm
@@ -44,7 +44,9 @@ sub customer_tickets {
#$dbh ||= create one from some config options
my( $from_sql, @param) = $self->_from_customer( $custnum, $priority );
- my $sql = "select * $from_sql order by priority desc limit $limit";
+ my $sql = "select tickets.*, queues.name".
+ ( length($priority) ? ", ticketcustomfieldvalues.content" : '' ).
+ " $from_sql order by priority desc limit $limit";
my $sth = $dbh->prepare($sql) or die $dbh->errstr. "preparing $sql";
$sth->execute(@param) or die $sth->errstr. "executing $sql";