aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/SendReport.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-04-03 16:48:11 +0100
committerStruan Donald <struan@exo.org.uk>2012-04-03 16:48:11 +0100
commitf531995b83e8448de25adab411673ec38e555385 (patch)
tree0d8090d554de7879963f4e1dfcd26c3bc7338dd0 /perllib/FixMyStreet/SendReport.pm
parent8bfb404c462cdc950b946a5de73152c2e8a7e502 (diff)
update send failed data if fail to send a report
add code in to save success and errors
Diffstat (limited to 'perllib/FixMyStreet/SendReport.pm')
-rw-r--r--perllib/FixMyStreet/SendReport.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/SendReport.pm b/perllib/FixMyStreet/SendReport.pm
index 84a89f877..e3b0b389c 100644
--- a/perllib/FixMyStreet/SendReport.pm
+++ b/perllib/FixMyStreet/SendReport.pm
@@ -7,8 +7,10 @@ use Module::Pluggable
search_path => __PACKAGE__,
require => 1;
-has 'councils' => (is => 'rw', isa => 'HashRef', default => sub { {} } );
-has 'to' => (is => 'rw', isa => 'ArrayRef', default => sub { [] } );
+has 'councils' => ( is => 'rw', isa => 'HashRef', default => sub { {} } );
+has 'to' => ( is => 'rw', isa => 'ArrayRef', default => sub { [] } );
+has 'success' => ( is => 'rw', isa => 'Bool', default => 0 );
+has 'error' => ( is => 'rw', isa => 'Str', default => '' );
sub get_senders {
my $self = shift;