aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/staff.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/staff.js b/web/cobrands/fixmystreet/staff.js
index 7dccedcd9..0bbf65aae 100644
--- a/web/cobrands/fixmystreet/staff.js
+++ b/web/cobrands/fixmystreet/staff.js
@@ -390,7 +390,8 @@ $(fixmystreet).on('display:report', function() {
$(fixmystreet).on('report_new:category_change', function(evt, $this) {
var category = $this.val();
var prefill_reports = $this.data('prefill');
- var body = $this.data('body');
+ var display_names = fixmystreet.reporting_data.display_names || {};
+ var body = display_names[ $this.data('body') ] || $this.data('body');
if (prefill_reports) {
var title = 'A ' + category + ' problem has been found';