[Rt-commit] r7843 - in rt/branches/3.7-EXPERIMENTAL/html/Admin: Global

clkao at bestpractical.com clkao at bestpractical.com
Sun May 13 02:04:05 EDT 2007


Author: clkao
Date: Sun May 13 02:04:03 2007
New Revision: 7843

Modified:
   rt/branches/3.7-EXPERIMENTAL/html/Admin/Global/MyRT.html
   rt/branches/3.7-EXPERIMENTAL/html/Admin/Users/MyRT.html

Log:
Fix MyRT homepage components configuration.

Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Global/MyRT.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Global/MyRT.html	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Global/MyRT.html	Sun May 13 02:04:03 2007
@@ -63,7 +63,7 @@
 <%init>
 my @actions;
 
-my @items = map { [ "component-$_", $_ ] } sort RT->Config->Get('HomepageComponents');
+my @items = map { [ "component-$_", $_ ] } sort @{ RT->Config->Get('HomepageComponents') };
 my $sys = RT::System->new( $session{'CurrentUser'} );
 # XXX: put this in savedsearches_to_portlet_items
 for ( $m->comp( "/Search/Elements/SearchesForObject",

Modified: rt/branches/3.7-EXPERIMENTAL/html/Admin/Users/MyRT.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Admin/Users/MyRT.html	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Admin/Users/MyRT.html	Sun May 13 02:04:03 2007
@@ -83,7 +83,7 @@
 my ($default_portlets) = RT::System->new($session{'CurrentUser'})->Attributes->Named('HomepageSettings');
 my $portlets  = $UserObj->Preferences('HomepageSettings', $default_portlets ? $default_portlets->Content  : {});
 
-my %allowed_components = map {$_ => 1} RT->Config->Get('HomepageComponents');
+my %allowed_components = map {$_ => 1} @{RT->Config->Get('HomepageComponents')};
 my @items;
 
 push @items, map {["component-$_", $_]} sort keys %allowed_components;


More information about the Rt-commit mailing list