diff options
Diffstat (limited to 'rt/share/html/Dashboards/Elements/ListOfDashboards')
-rw-r--r-- | rt/share/html/Dashboards/Elements/ListOfDashboards | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/rt/share/html/Dashboards/Elements/ListOfDashboards b/rt/share/html/Dashboards/Elements/ListOfDashboards deleted file mode 100644 index b2cbd3ebe..000000000 --- a/rt/share/html/Dashboards/Elements/ListOfDashboards +++ /dev/null @@ -1,19 +0,0 @@ -<%init> -# put the list of dashboards into the navigation -use RT::Dashboard; - -my @objs = RT::Dashboard->new($session{CurrentUser})->_PrivacyObjects(ShowSystem => 1); -my $dashboard_map = $m->comp("/Dashboards/Elements/DashboardsForObjects", Objects => \@objs); - -my @dashboards = ( - (sort { $a->Id <=> $b->Id } @{ $dashboard_map->{personal} || [] }), - (sort { $a->Id <=> $b->Id } @{ $dashboard_map->{system} || [] }), - - map { sort { $a->Id <=> $b->Id } @{ $dashboard_map->{group}{$_} } } - keys %{ $dashboard_map->{group} || {} }, -); - -$m->callback(%ARGS, dashboards => \@dashboards, CallbackName => 'ModifyDashboards'); - -return @dashboards; -</%init> |