diff options
Diffstat (limited to 'perllib/FixMyStreet/SendReport')
-rw-r--r-- | perllib/FixMyStreet/SendReport/Email.pm | 4 | ||||
-rw-r--r-- | perllib/FixMyStreet/SendReport/Open311.pm | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/perllib/FixMyStreet/SendReport/Email.pm b/perllib/FixMyStreet/SendReport/Email.pm index a39760509..5277b639a 100644 --- a/perllib/FixMyStreet/SendReport/Email.pm +++ b/perllib/FixMyStreet/SendReport/Email.pm @@ -26,7 +26,7 @@ sub build_recipient_list { unless ($confirmed) { $all_confirmed = 0; - $note = 'Body ' . $row->bodies . ' deleted' + $note = 'Body ' . $row->bodies_str . ' deleted' unless $note; $body_email = 'N/A' unless $body_email; $self->unconfirmed_counts->{$body_email}{$row->category}++; @@ -45,7 +45,7 @@ sub get_template { my ( $self, $row ) = @_; my $template = 'submit.txt'; - $template = 'submit-brent.txt' if $row->bodies eq 2488 || $row->bodies eq 2237; + $template = 'submit-brent.txt' if $row->bodies_str eq 2488 || $row->bodies_str eq 2237; my $template_path = FixMyStreet->path_to( "templates", "email", $row->cobrand, $row->lang, $template )->stringify; $template_path = FixMyStreet->path_to( "templates", "email", $row->cobrand, $template )->stringify unless -e $template_path; diff --git a/perllib/FixMyStreet/SendReport/Open311.pm b/perllib/FixMyStreet/SendReport/Open311.pm index f0a76d0fb..c6d838998 100644 --- a/perllib/FixMyStreet/SendReport/Open311.pm +++ b/perllib/FixMyStreet/SendReport/Open311.pm @@ -40,7 +40,7 @@ sub send { my $revert = 0; # Extra bromley fields - if ( $row->bodies == 2482 ) { + if ( $row->bodies_str == 2482 ) { $revert = 1; @@ -90,12 +90,12 @@ sub send { ); # non standard west berks end points - if ( $row->bodies =~ /2619/ ) { + if ( $row->bodies_str =~ /2619/ ) { $open311->endpoints( { services => 'Services', requests => 'Requests' } ); } # required to get round issues with CRM constraints - if ( $row->bodies =~ /2218/ ) { + if ( $row->bodies_str =~ /2218/ ) { $row->user->name( $row->user->id . ' ' . $row->user->name ); $revert = 1; } @@ -124,7 +124,7 @@ sub send { } else { $result *= 1; # temporary fix to resolve some issues with west berks - if ( $row->bodies =~ /2619/ ) { + if ( $row->bodies_str =~ /2619/ ) { $result *= 0; } } |