[Rt-commit] r15702 - in rt/3.8/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Tue Sep 2 22:13:01 EDT 2008


Author: sartak
Date: Tue Sep  2 22:13:01 2008
New Revision: 15702

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/share/html/Dashboards/Queries.html

Log:
 r70873 at onn:  sartak | 2008-09-02 20:54:40 -0400
 Include components in the list of possible queries


Modified: rt/3.8/trunk/share/html/Dashboards/Queries.html
==============================================================================
--- rt/3.8/trunk/share/html/Dashboards/Queries.html	(original)
+++ rt/3.8/trunk/share/html/Dashboards/Queries.html	Tue Sep  2 22:13:01 2008
@@ -103,6 +103,15 @@
     $desc_of{$name} = $desc;
 }
 
+my @components = @{ RT->Config->Get('HomepageComponents') };
+my %allowed_components = map {$_ => 1} @components;
+
+for my $desc (@components) {
+    my $name = "component-$desc";
+    push @items, [$name, $desc];
+    $desc_of{$name} = $desc;
+}
+
 my $sys = RT::System->new($session{'CurrentUser'});
 my @objs = ($sys);
 


More information about the Rt-commit mailing list