diff --git a/perllib/FixMyStreet/App/Controller/Dashboard.pm b/perllib/FixMyStreet/App/Controller/Dashboard.pm index 226da88d92d..f02ca323ac5 100644 --- a/perllib/FixMyStreet/App/Controller/Dashboard.pm +++ b/perllib/FixMyStreet/App/Controller/Dashboard.pm @@ -171,7 +171,7 @@ sub index : Path : Args(0) { $c->stash->{category} = \@categories; $c->stash->{groups_selected_from} = \@groups_selected_from; - $c->stash->{display_categories} = { reverse %display_categories }; + $c->stash->{display_categories} = \%display_categories; $c->stash->{ward} = [ $c->get_param_list('ward') ]; if ($c->user_exists) { diff --git a/t/app/controller/dashboard.t b/t/app/controller/dashboard.t index 3292d2ba5ba..0a4f8fca778 100644 --- a/t/app/controller/dashboard.t +++ b/t/app/controller/dashboard.t @@ -206,8 +206,8 @@ FixMyStreet::override_config { $sub_pothole_road->update; $mech->get_ok("/dashboard?category=group-Road+%26+more&category=Litter-group-"); test_table($mech->content, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 2, 0, 4, 6, 1, 0, 0, 1, 4, 1, 4, 9); - $sub_pothole_pavement->delete; $sub_pothole_pavement->update; - $sub_pothole_road->delete; $sub_pothole_road->update; + $sub_pothole_pavement->delete; + $sub_pothole_road->delete; }; subtest 'test grouping' => sub { diff --git a/templates/web/base/dashboard/index.html b/templates/web/base/dashboard/index.html index ba46628f6b2..f0c2a1ecbde 100644 --- a/templates/web/base/dashboard/index.html +++ b/templates/web/base/dashboard/index.html @@ -53,8 +53,8 @@