[Bps-public-commit] r12959 - RT-BugTracker/html/Dist

ruz at bestpractical.com ruz at bestpractical.com
Fri Jun 6 06:32:19 EDT 2008


Author: ruz
Date: Fri Jun  6 06:32:19 2008
New Revision: 12959

Modified:
   RT-BugTracker/html/Dist/Display.html

Log:
* use ActiveStatus from the config

Modified: RT-BugTracker/html/Dist/Display.html
==============================================================================
--- RT-BugTracker/html/Dist/Display.html	(original)
+++ RT-BugTracker/html/Dist/Display.html	Fri Jun  6 06:32:19 2008
@@ -105,15 +105,14 @@
 my ($base_url) = ($current_subtab =~ m|^Dist/(.+)$|);
 $base_url .= '&';
 
-my $Query;
+my $Query = "Queue = '$Queue'";
 if ($Status eq 'Active') {
-    $Query = "Queue = '$Queue' "
-             . "AND ( Status = 'new' OR Status = 'open' "
-             . "OR Status = 'stalled' )";
+    $Query .= " AND ( "
+        .join( ' OR ', map "Status = '$_'", @RT::ActiveStatus )
+        ." )";
 }
 else {
-    $Query = "Queue = '$Queue' "
-             . "AND Status = '" . $Status . q{'};
+    $Query .= " AND Status = '$Status'";
 }
 my $QueryString = "?".$m->comp('/Elements/QueryString',
                                Query => $Query,



More information about the Bps-public-commit mailing list