diff options
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/My.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/My.pm | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm index 0bcee7ac6..b3d341a68 100644 --- a/perllib/FixMyStreet/App/Controller/My.pm +++ b/perllib/FixMyStreet/App/Controller/My.pm @@ -28,24 +28,12 @@ sub my : Path : Args(0) { my $p_page = $c->req->params->{p} || 1; my $u_page = $c->req->params->{u} || 1; - my $states; - $c->stash->{filter_status} = $c->cobrand->on_map_default_status; - my $status = $c->req->param('status') || $c->cobrand->on_map_default_status; - if ( $status eq 'all' ) { - $states = FixMyStreet::DB::Result::Problem->visible_states(); - $c->stash->{filter_status} = 'all'; - } elsif ( $status eq 'open' ) { - $states = FixMyStreet::DB::Result::Problem->open_states(); - $c->stash->{filter_status} = 'open'; - } elsif ( $status eq 'fixed' ) { - $states = FixMyStreet::DB::Result::Problem->fixed_states(); - $c->stash->{filter_status} = 'fixed'; - } + $c->forward( '/reports/stash_report_filter_status' ); my $pins = []; my $problems = {}; - + my $states = $c->stash->{filter_problem_states}; my $params = { state => [ keys %$states ], }; |