From 555d7e11b0beb54125e09a4cd73a9b922f9a549e Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 22 Aug 2024 11:47:19 +0100 Subject: [PATCH] [Merton] Set up locale in payment checking. Without this, the email sending would fail. --- perllib/FixMyStreet/Script/Merton/SendWaste.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/perllib/FixMyStreet/Script/Merton/SendWaste.pm b/perllib/FixMyStreet/Script/Merton/SendWaste.pm index 2ec68307c8..7c7bf7975d 100644 --- a/perllib/FixMyStreet/Script/Merton/SendWaste.pm +++ b/perllib/FixMyStreet/Script/Merton/SendWaste.pm @@ -32,6 +32,7 @@ sub check_payments { }); while (my $row = $problems->next) { my $cobrand = $row->get_cobrand_logged; + $cobrand->set_lang_and_domain($row->lang, 1); 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) {