X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FDashboards%2FElements%2FDashboardsForObject;fp=rt%2Fshare%2Fhtml%2FDashboards%2FElements%2FDashboardsForObject;h=3de02161ed834dc8e9a894d41f1be1f445c298b5;hb=1c538bfabc2cd31f27067505f0c3d1a46cba6ef0;hp=4c9df63caf339fe18562032433198a671b0ff507;hpb=4f5619288413a185e9933088d9dd8c5afbc55dfa;p=freeside.git diff --git a/rt/share/html/Dashboards/Elements/DashboardsForObject b/rt/share/html/Dashboards/Elements/DashboardsForObject index 4c9df63ca..3de02161e 100644 --- a/rt/share/html/Dashboards/Elements/DashboardsForObject +++ b/rt/share/html/Dashboards/Elements/DashboardsForObject @@ -57,7 +57,7 @@ my $privacy = RT::Dashboard->_build_privacy($Object); while (my $attr = $Object->Attributes->Next) { if ($attr->Name =~ /^Dashboard\b/) { - my $dashboard = RT::Dashboard->new($session{'CurrentUser'}); + my $dashboard = RT::Dashboard->new($User); my ($ok, $msg) = $dashboard->Load($privacy, $attr->id); if (!$ok) { @@ -79,3 +79,7 @@ while (my $attr = $Object->Attributes->Next) { return \%dashboards; +<%args> +$User => $session{'CurrentUser'} + +