diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-05-28 16:07:57 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-05-28 16:07:57 +0100 |
commit | 959012b397c40638eaa62cd911f416f605043330 (patch) | |
tree | 6fcfd0325d02f89c12a83ceaea39966dfa3b454d /perllib/FixMyStreet/DB/ResultSet/Questionnaire.pm | |
parent | c86fb4cfa6fdf62c5d0ba968b6fda7eb46c3d027 (diff) | |
parent | 2e94d363be99e83a24ed7b14c6dd00480b9afc93 (diff) |
Merge branch '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 |