aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-06-10 14:39:12 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-06-10 14:39:12 +0100
commitffb88ce81cadca0838fcbd1f849f46203a8a7bc8 (patch)
treedc522e18d8ed62181f365cacef4567f006ab6ed1 /perllib/FixMyStreet
parent476781624d03b8ae57f456206465fd3fb2e45e97 (diff)
parentf706b89ef794ed3d16c015842d6052d03a5d39ef (diff)
Merge branch 'issues/commercial/1917-fix-template-unicode'
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Roles/ContactExtra.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Roles/ContactExtra.pm b/perllib/FixMyStreet/Roles/ContactExtra.pm
index e78d9b53f..73b1d3e6a 100644
--- a/perllib/FixMyStreet/Roles/ContactExtra.pm
+++ b/perllib/FixMyStreet/Roles/ContactExtra.pm
@@ -46,7 +46,7 @@ sub by_categories {
|| (grep { $_->contact_id == $contact->get_column('id') } $_->$join_table)
} @results;
@ts = $rs->map_extras(@ts);
- $extras{$contact->category} = encode_json(\@ts);
+ $extras{$contact->category} = JSON::XS->new->encode(\@ts);
}
return \%extras;