diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-05-21 14:59:15 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-05-21 14:59:15 +0100 |
commit | df4cc931c4e0320335508bc611ff77c2394181e5 (patch) | |
tree | 0f09c9ea7cf6dd7350b29ee5616504735f9bdf54 /perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm | |
parent | 9191cd8a75ab796553534c88caaf40214d4c7f4c (diff) |
No questionnaires for Bromley.
Diffstat (limited to 'perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm | 3 |
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 |