Skip to content

Commit

Permalink
[Merton] Make sure map class set on payment check.
Browse files Browse the repository at this point in the history
It might end up sending an email that needs a static map included.
  • Loading branch information
dracos committed Sep 30, 2024
1 parent a0a1c6c commit dd479b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions perllib/FixMyStreet/Script/Merton/SendWaste.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ sub check_payments {
while (my $row = $problems->next) {
my $cobrand = $row->get_cobrand_logged;
$cobrand->set_lang_and_domain($row->lang, 1);
FixMyStreet::Map::set_map_class($cobrand);
my $query_id = $row->get_extra_metadata('scpReference') or next; # Problem fetching unique ID from payment provider
my ($error, $reference) = $cobrand->cc_check_payment_and_update($query_id, $row);
if ($reference) {
Expand Down

0 comments on commit dd479b3

Please sign in to comment.