[Rt-commit] r6689 - rt/branches/3.6-RELEASE/html/Elements
ruz at bestpractical.com
ruz at bestpractical.com
Fri Dec 22 19:05:48 EST 2006
Author: ruz
Date: Fri Dec 22 19:05:47 2006
New Revision: 6689
Modified:
rt/branches/3.6-RELEASE/html/Elements/QueueSummary
Log:
* get rid of 1 query per queue in html/Elements/QueueSummary component
Modified: rt/branches/3.6-RELEASE/html/Elements/QueueSummary
==============================================================================
--- rt/branches/3.6-RELEASE/html/Elements/QueueSummary (original)
+++ rt/branches/3.6-RELEASE/html/Elements/QueueSummary Fri Dec 22 19:05:47 2006
@@ -58,7 +58,7 @@
<tr class="<% $i%2 ? 'oddline' : 'evenline'%>" >
<td><a href="<% $RT::WebPath%>/Search/Results.html?Query=<%$all_q%>" title="<% $queue->{Description} %>"><%$queue->{Name}%></a></td>
% for my $condition (@$conditions) {
-% $Tickets->FromSQL($queue_cond.$condition->{cond}),
+% $Tickets->FromSQL( "Queue = $queue->{id} AND ". $condition->{cond} );
<td align="right"><a href="<% $RT::WebPath%>/Search/Results.html?Query=<%$queue_cond.$condition->{cond}%>"><% $Tickets->Count %></a></td>
% }
</tr>
More information about the Rt-commit
mailing list