diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-17 23:09:05 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-17 23:09:05 +0100 |
commit | 349b9f813f07da61ca117f49d1a3746979dffac8 (patch) | |
tree | 9661963edc9187063a97f8d4930c71bb17698e24 /perllib/FixMyStreet/App/Controller/Questionnaire.pm | |
parent | 5153ba514d7f4d8889ad55e8b1b7b18da63644d2 (diff) |
Centralise UK location check to catch edge cases.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Questionnaire.pm')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Questionnaire.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Questionnaire.pm b/perllib/FixMyStreet/App/Controller/Questionnaire.pm index 5506e2dbd..19d057958 100755 --- a/perllib/FixMyStreet/App/Controller/Questionnaire.pm +++ b/perllib/FixMyStreet/App/Controller/Questionnaire.pm @@ -79,7 +79,7 @@ sub submit : Path('submit') { } elsif ( $c->req->params->{problem} ) { $c->forward('submit_creator_fixed'); } else { - return; + $c->detach( '/page_error_404_not_found' ); } return 1; |