aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-05-21 14:59:15 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-05-21 14:59:15 +0100
commitdf4cc931c4e0320335508bc611ff77c2394181e5 (patch)
tree0f09c9ea7cf6dd7350b29ee5616504735f9bdf54 /perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm
parent9191cd8a75ab796553534c88caaf40214d4c7f4c (diff)
No questionnaires for Bromley.
Diffstat (limited to 'perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm')
-rw-r--r--perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm b/perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm
index 0cf01b6d1..753eb2084 100644
--- a/perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm
+++ b/perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm
@@ -48,6 +48,9 @@ sub send_questionnaires_period {
my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($row->cobrand)->new();
$cobrand->set_lang_and_domain($row->lang, 1);
+ # Not all cobrands send questionnaires
+ next unless $cobrand->send_questionnaires;
+
# Cobranded and non-cobranded messages can share a database. In this case, the conf file
# should specify a vhost to send the reports for each cobrand, so that they don't get sent
# more than once if there are multiple vhosts running off the same database. The email_host