diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-16 14:43:04 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-16 14:43:04 +0100 |
commit | 250552f799ea66320a4fbbf34c24b87a111f006a (patch) | |
tree | 1f7ef9e87b933451644706b4cae0bace830cb5df | |
parent | 4a7912b97c75d8934bbab33532f0b6ac1e86e47f (diff) |
404 for partial IDs.
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index 497ec784a..f732b94f1 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -66,7 +66,7 @@ sub load_problem_or_display_error : Private { : $c->cobrand->problems->find( { id => $id } ); # check that the problem is suitable to show. - if ( !$problem || $problem->state eq 'unconfirmed' ) { + if ( !$problem || $problem->state eq 'unconfirmed' || $problem->state eq 'partial' ) { $c->detach( '/page_error_404_not_found', [ _('Unknown problem ID') ] ); } elsif ( $problem->state eq 'hidden' ) { |