aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Script
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-12-13 13:35:12 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-12-13 13:35:12 +0000
commit5a6d30ba74e70412593398b43e4c5e5c938c1d4c (patch)
tree0b48ac48f1914a4091b6312fc175ce0849012c37 /perllib/FixMyStreet/Script
parentc6dd57095435257b1a37e424c4170d37a1c82a37 (diff)
parentf982c8f38d192c7d4c3304ab5617df01be4176a6 (diff)
Merge branch 'issues/forcouncils/261-rdi-check'
Diffstat (limited to 'perllib/FixMyStreet/Script')
-rw-r--r--perllib/FixMyStreet/Script/Reports.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Script/Reports.pm b/perllib/FixMyStreet/Script/Reports.pm
index 1ea98342c..04ad1c893 100644
--- a/perllib/FixMyStreet/Script/Reports.pm
+++ b/perllib/FixMyStreet/Script/Reports.pm
@@ -222,7 +222,9 @@ sub send(;$) {
for my $sender ( keys %reporters ) {
debug_print("sending using " . $sender, $row->id) if $debug_mode;
$sender = $reporters{$sender};
- $result *= $sender->send( $row, \%h );
+ my $res = $sender->send( $row, \%h );
+ $result *= $res;
+ $row->add_send_method($sender) if !$res;
if ( $sender->unconfirmed_counts) {
foreach my $e (keys %{ $sender->unconfirmed_counts } ) {
foreach my $c (keys %{ $sender->unconfirmed_counts->{$e} }) {