diff options
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/My.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/My.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm index 81a9d7a93..8eb7f079e 100644 --- a/perllib/FixMyStreet/App/Controller/My.pm +++ b/perllib/FixMyStreet/App/Controller/My.pm @@ -36,7 +36,7 @@ sub my : Path : Args(0) { my $states = $c->stash->{filter_problem_states}; my $params = { state => [ keys %$states ], - user => $c->user->id, + user_id => $c->user->id, }; my $category = $c->get_param('filter_category'); @@ -76,7 +76,7 @@ sub my : Path : Args(0) { $c->stash->{updates} = \@updates; $c->stash->{updates_pager} = $rs->pager; - my @categories = $c->cobrand->problems->search( { user => $c->user->id }, { + my @categories = $c->cobrand->problems->search( { user_id => $c->user->id }, { columns => [ 'category' ], distinct => 1, order_by => [ 'category' ], |