[Rt-commit] r19243 - in rt/3.8/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Thu Apr 16 20:06:27 EDT 2009
Author: sartak
Date: Thu Apr 16 20:06:27 2009
New Revision: 19243
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/share/html/Dashboards/Queries.html
Log:
r82237 at onn: sartak | 2009-04-16 20:06:21 -0400
Improve clarity
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 Thu Apr 16 20:06:27 2009
@@ -110,6 +110,7 @@
}
};
+# add portlets (homepage componenets)
my @components = @{ RT->Config->Get('HomepageComponents') };
my %allowed_components = map {$_ => 1} @components;
@@ -119,8 +120,8 @@
$desc_of{$name} = $desc;
}
-my $sys = RT::System->new($session{'CurrentUser'});
-my @objs = ($sys);
+# add saved searches
+my @objs = RT::System->new($session{'CurrentUser'});
push @objs, RT::SavedSearches->new( $session{CurrentUser} )->_PrivacyObjects
if $session{'CurrentUser'}->HasRight( Right => 'LoadSavedSearch',
@@ -164,11 +165,11 @@
my $portlet_type = $1 if $item =~ s/^(\w+)-//;
if ($portlet_type eq 'search') {
- my ($search_id, $privacy) = split '-', $item, 2;
+ my ($id, $privacy) = split '-', $item, 2;
push @portlets, {
portlet_type => $portlet_type,
privacy => $privacy,
- id => $search_id,
+ id => $id,
description => $desc,
pane => $pane,
};
More information about the Rt-commit
mailing list