[freeside-commits]
freeside/FS/FS/TicketSystem RT_External.pm, 1.23, 1.24
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Nov 8 18:28:11 PST 2006
Update of /home/cvs/cvsroot/freeside/FS/FS/TicketSystem
In directory wavetail:/tmp/cvs-serv19557
Modified Files:
RT_External.pm
Log Message:
correct ticket order
Index: RT_External.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/TicketSystem/RT_External.pm,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- RT_External.pm 13 Aug 2006 10:25:58 -0000 1.23
+++ RT_External.pm 9 Nov 2006 02:28:08 -0000 1.24
@@ -55,9 +55,11 @@
$limit ||= 0;
my( $from_sql, @param) = $self->_from_customer( $custnum, $priority );
- my $sql = "SELECT tickets.*, queues.name".
- ( length($priority) ? ", objectcustomfieldvalues.content" : '' ).
- " $from_sql ORDER BY priority, id DESC LIMIT $limit";
+ my $sql="SELECT tickets.*, queues.name, ".
+ "position(tickets.status in 'newopenstalledresolvedrejecteddeleted')".
+ " AS svalue " .
+ ( length($priority) ? ", objectcustomfieldvalues.content" : '' ).
+ " $from_sql ORDER BY priority, svalue, id DESC LIMIT $limit";
my $sth = $dbh->prepare($sql) or die $dbh->errstr. "preparing $sql";
$sth->execute(@param) or die $sth->errstr. "executing $sql";
More information about the freeside-commits
mailing list