aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorlouise <louise>2009-12-08 17:43:13 +0000
committerlouise <louise>2009-12-08 17:43:13 +0000
commit0e2504c3634a29ceeac5070b7ede550ee4828e3c (patch)
tree6d961188ea3ec7cb08777d089c7a3a69b311d985 /web
parent48c3414765c34109bcc5f6c114ce4425c8a6f292 (diff)
Allow cobrands to decide if they\'re going to ask people if they\'ve ever reported a problem before
Diffstat (limited to 'web')
-rwxr-xr-xweb/questionnaire.cgi7
1 files changed, 5 insertions, 2 deletions
diff --git a/web/questionnaire.cgi b/web/questionnaire.cgi
index 19457570d..60a4be188 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.52 2009-12-07 15:35:06 louise Exp $
+# $Id: questionnaire.cgi,v 1.53 2009-12-08 17:43:13 louise Exp $
use strict;
use Standard;
@@ -87,7 +87,10 @@ sub submit_questionnaire {
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;
+ my $ask_ever_reported = Cobrand::ask_ever_reported($cobrand);
+ if ($ask_ever_reported) {
+ push @errors, _('Please say whether you\'ve ever reported a problem to your council before') unless $input{reported} || $answered_ever_reported;
+ }
push @errors, _('Please indicate whether you\'d like to receive another questionnaire')
if ($input{been_fixed} eq 'No' || $input{been_fixed} eq 'Unknown') && !$input{another};
push @errors, _('Please provide some explanation as to why you\'re reopening this report')