diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-08-23 18:20:58 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-08-27 13:50:45 +0100 |
commit | 1b45825a74abf3fbc709c8c7169d83a3e6de4e7a (patch) | |
tree | 66858dab2d9d55518bfa874e6e374757db27a602 | |
parent | 91328191916df2f19712b59e4330e4b45fe9d0a3 (diff) |
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.
-rw-r--r-- | web/cobrands/fixmystreet/assets.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js index 096a5824e..a00adb055 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; |