Skip to content

Commit

Permalink
Fix bug with body public display text.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dracos committed Aug 27, 2019
1 parent 9132819 commit 1b45825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/cobrands/fixmystreet/assets.js
Expand Up @@ -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;
Expand Down

0 comments on commit 1b45825

Please sign in to comment.