diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-08 13:51:17 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-08 13:51:17 +0100 |
commit | 500190d03fcbfd8993f46b61bca9e12a7339dbc2 (patch) | |
tree | 3398fbde51e5ef35040b6d9611cb2eabd618071d /perllib/FixMyStreet/App/Controller/Rss.pm | |
parent | e19d63897578e31cf40cc185a663cebd8edb9c14 (diff) |
Switch to using c->cobrand->problems to return all problems for a cobrand (so on Barnet only return Barnet problems).
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Rss.pm')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Rss.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Rss.pm b/perllib/FixMyStreet/App/Controller/Rss.pm index f41ffe217..4c048b56d 100755 --- a/perllib/FixMyStreet/App/Controller/Rss.pm +++ b/perllib/FixMyStreet/App/Controller/Rss.pm @@ -30,7 +30,7 @@ sub updates : LocalRegex('^(\d+)$') { my ( $self, $c ) = @_; my $id = $c->req->captures->[0]; - my $problem = $c->model('DB::Problem')->find( { id => $id } ); + my $problem = $c->cobrand->problems->find( { id => $id } ); # FIXME Put these 404/410 checks in central place - Report.pm does it too. if ( !$problem || $problem->state eq 'unconfirmed' ) { |