From 1b45825a74abf3fbc709c8c7169d83a3e6de4e7a Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 23 Aug 2019 18:20:58 +0100 Subject: [PATCH] Fix bug with body public display text. The CSV utils function returns an array of arrays, not just an array, which this code did not realise. All this affected was sometimes both bodies were shown in a two-tier area when the code meant to show one. --- web/cobrands/fixmystreet/assets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js index 096a5824eb8..a00adb05506 100644 --- a/web/cobrands/fixmystreet/assets.js +++ b/web/cobrands/fixmystreet/assets.js @@ -993,7 +993,7 @@ $(fixmystreet).on('body_overrides:change', function() { } if (do_not_send) { - do_not_send = fixmystreet.utils.csv_to_array(do_not_send); + do_not_send = fixmystreet.utils.csv_to_array(do_not_send)[0]; var lookup = {}; $.map(do_not_send, function(val) { lookup[val] = 1;