[Rt-commit] rt branch, 4.2/dashboard-tables, updated. rt-4.0.0rc6-178-g71312da

Shawn Moore sartak at bestpractical.com
Tue Mar 22 13:11:04 EDT 2011


The branch, 4.2/dashboard-tables has been updated
       via  71312da32ff0bb7175de23d07d43d3d8fd12f7e7 (commit)
      from  3e62d98da3d066e3b3593d44586667c5ffda7a4e (commit)

Summary of changes:
 share/html/Admin/Global/DashboardsInMenu.html |    2 +-
 share/html/Dashboards/Elements/ShowDashboards |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 71312da32ff0bb7175de23d07d43d3d8fd12f7e7
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Mar 22 13:10:53 2011 -0400

    Use LimitToObject instead of LimitToPrivacy for forward compat

diff --git a/share/html/Admin/Global/DashboardsInMenu.html b/share/html/Admin/Global/DashboardsInMenu.html
index c57a41a..fb12b90 100644
--- a/share/html/Admin/Global/DashboardsInMenu.html
+++ b/share/html/Admin/Global/DashboardsInMenu.html
@@ -71,7 +71,7 @@ my $default_dashboards_in_menu =
 
 use RT::Dashboards;
 my $dashboards = RT::Dashboards->new( $RT::SystemUser );
-$dashboards->LimitToPrivacy('RT::System-' . $sys->id);
+$dashboards->LimitToObject($sys);
 
 my @dashboards;
 while ( my $dashboard = $dashboards->Next ) {
diff --git a/share/html/Dashboards/Elements/ShowDashboards b/share/html/Dashboards/Elements/ShowDashboards
index ec32426..2cc1c24 100644
--- a/share/html/Dashboards/Elements/ShowDashboards
+++ b/share/html/Dashboards/Elements/ShowDashboards
@@ -47,7 +47,7 @@
 %# END BPS TAGGED BLOCK }}}
 % foreach my $Object (@Objects) {
 %   my $Dashboards = RT::Dashboards->new($session{CurrentUser});
-%   $Dashboards->LimitToPrivacy(join('-',ref($Object),$Object->Id));
+%   $Dashboards->LimitToObject($Object);
 %   my $title;
 %   if (ref $Object eq 'RT::User' && $Object->Id == $session{CurrentUser}->Id) {
 %       $title = loc("My dashboards");

-----------------------------------------------------------------------


More information about the Rt-commit mailing list