aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2014-03-11 16:48:29 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2014-03-11 17:33:00 +0000
commitde47a7fad977156c67748deed6b3f154fc849035 (patch)
tree7dfc7d1f97c857b43c5f3f3a9b72c7604e0fc963 /perllib
parentc44317e640cfe9dd766f09598873d8b96db2414a (diff)
Make sure language is set before updating report.
So that e.g. 'Closed by council' is translated.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/Open311/GetUpdates.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/Open311/GetUpdates.pm b/perllib/Open311/GetUpdates.pm
index 5d5291d47..db5d8ef35 100644
--- a/perllib/Open311/GetUpdates.pm
+++ b/perllib/Open311/GetUpdates.pm
@@ -72,6 +72,8 @@ sub update_reports {
->search( { external_id => $request_id, } );
if (my $p = $problem->first) {
+ my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($p->cobrand)->new();
+ $cobrand->set_lang_and_domain($p->lang, 1);
$p->update_from_open311_service_request( $request, $council_details, $self->system_user );
}
}