diff options
author | matthew <matthew> | 2008-12-01 17:36:08 +0000 |
---|---|---|
committer | matthew <matthew> | 2008-12-01 17:36:08 +0000 |
commit | cfa458edaa2c599aec5deaa9f0104d8c71528554 (patch) | |
tree | 6691db44c23b31a9933bcf3defdc2c0d0e5ab056 | |
parent | 48facdc8d46870c12a58949a667133dea3f673da (diff) |
Another questionnaire question pre-answered.
-rwxr-xr-x | web/questionnaire.cgi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/questionnaire.cgi b/web/questionnaire.cgi index 7f5c553fb..40679880c 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.35 2008-12-01 17:26:35 matthew Exp $ +# $Id: questionnaire.cgi,v 1.36 2008-12-01 17:36:08 matthew Exp $ use strict; use Standard; @@ -70,6 +70,11 @@ sub submit_questionnaire { }; return $error if $error; + # EHA questionnaires done for you + if ($q->{site} eq 'emptyhomes') { + $input{another} = $num_questionnaire==1 ? 'Yes' : 'No'; + } + my @errors; push @errors, 'Please state whether or not the problem has been fixed' unless $input{been_fixed}; push @errors, 'Please say whether you\'ve ever reported a problem to your council before' unless $input{reported} || $answered_ever_reported; |