X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FDashboards%2FElements%2FDashboardsForObject;h=ddc5649ed62034e440f02121d53050b7ac3a185a;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=3e1131072be77a86e392a15a01cfaf582adbfe55;hpb=e9e0cf0989259b94d9758eceff448666a2e5a5cc;p=freeside.git diff --git a/rt/share/html/Dashboards/Elements/DashboardsForObject b/rt/share/html/Dashboards/Elements/DashboardsForObject index 3e1131072..ddc5649ed 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-2014 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 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'} + +