[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.6-353-ge7bc437
Alex Vandiver
alexmv at bestpractical.com
Fri Dec 3 17:42:54 EST 2010
The branch, 3.9-trunk has been updated
via e7bc4373f128dd0ed7ff2bcdf4b7b4f3b480c64d (commit)
from d5721a62f65dfd8081c4235cfb582ff3dcf0234f (commit)
Summary of changes:
share/html/Elements/QueueSummaryByLifecycle | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit e7bc4373f128dd0ed7ff2bcdf4b7b4f3b480c64d
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Fri Dec 3 17:42:45 2010 -0500
Short-circuit the query if we have no queues
This fixes a bug where we made invalid TicketSQL when we could see no queues
diff --git a/share/html/Elements/QueueSummaryByLifecycle b/share/html/Elements/QueueSummaryByLifecycle
index e40e0d9..e1f07df 100644
--- a/share/html/Elements/QueueSummaryByLifecycle
+++ b/share/html/Elements/QueueSummaryByLifecycle
@@ -130,6 +130,7 @@ my $query =
.") AND (".
join(' OR ', map "Queue = ".$_->{id}, @queues)
.")";
+$query = 'id < 0' unless @queues;
$report->SetupGroupings( Query => $query, GroupBy => [qw(Status Queue)] );
while ( my $entry = $report->Next ) {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list