diff options
author | matthew <matthew> | 2008-09-19 10:24:55 +0000 |
---|---|---|
committer | matthew <matthew> | 2008-09-19 10:24:55 +0000 |
commit | 6708e7dd9b259207c613bb08b693d0ee5a1f2f0d (patch) | |
tree | 35d6c887c93a4a76e47400fa158dd35b58c32273 /web/questionnaire.cgi | |
parent | 2b7fa24af368a4b66893fa5a26ff849807f5d427 (diff) |
Nicer URLs for reports.
Diffstat (limited to 'web/questionnaire.cgi')
-rwxr-xr-x | web/questionnaire.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/questionnaire.cgi b/web/questionnaire.cgi index 3b36216b8..aa79f1313 100755 --- a/web/questionnaire.cgi +++ b/web/questionnaire.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: questionnaire.cgi,v 1.30 2008-05-06 10:01:31 matthew Exp $ +# $Id: questionnaire.cgi,v 1.31 2008-09-19 10:24:55 matthew Exp $ use strict; use Standard; @@ -40,7 +40,7 @@ sub check_stuff { my $questionnaire = dbh()->selectrow_hashref( 'select id, problem_id, whenanswered from questionnaire where id=?', {}, $id); my $problem_id = $questionnaire->{problem_id}; - throw Error::Simple("You have already answered this questionnaire. If you have a question, please <a href=/contact>get in touch</a>, or <a href=/?id=$problem_id>view your problem</a>.\n") if $questionnaire->{whenanswered}; + throw Error::Simple("You have already answered this questionnaire. If you have a question, please <a href=/contact>get in touch</a>, or <a href=/report/$problem_id>view your problem</a>.\n") if $questionnaire->{whenanswered}; my $prev_questionnaire = dbh()->selectrow_hashref( 'select id from questionnaire where problem_id=? and whenanswered is not null', {}, $problem_id); |