aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-06-23 16:30:29 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-06-23 18:18:26 +0100
commit4b780de3e34128a4581dbc4daead30be00ceadb4 (patch)
tree3e52feb4e64c9752d5d73098bd74986846850333 /perllib/FixMyStreet
parent58a7df7603b657e8b56bae9b46a0451b4534e9ad (diff)
[Open311] Use devolved data on update sending.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/Default.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm
index c8e11f93d..73340338b 100644
--- a/perllib/FixMyStreet/Cobrand/Default.pm
+++ b/perllib/FixMyStreet/Cobrand/Default.pm
@@ -961,7 +961,7 @@ sub get_body_sender {
# look up via category
my $contact = $body->contacts->search( { category => $category } )->first;
- if ( $body->can_be_devolved && $contact->send_method ) {
+ if ( $body->can_be_devolved && $contact && $contact->send_method ) {
return { method => $contact->send_method, config => $contact, contact => $contact };
}