X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FDashboards%2FElements%2FDashboardsForObject;h=3de02161ed834dc8e9a894d41f1be1f445c298b5;hp=e96afbd6a36a85ab0dcdec389ed6e7910caff0b8;hb=9aee669886202be7035e6c6049fc71bc99dd3013;hpb=43a06151e47d2c59b833cbd8c26d97865ee850b6 diff --git a/rt/share/html/Dashboards/Elements/DashboardsForObject b/rt/share/html/Dashboards/Elements/DashboardsForObject index e96afbd6a..3de02161e 100644 --- a/rt/share/html/Dashboards/Elements/DashboardsForObject +++ b/rt/share/html/Dashboards/Elements/DashboardsForObject @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -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'} + +