diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-03-20 14:45:29 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2020-03-31 09:58:58 +0100 |
commit | 0aef77167952f2ceff90e4aad27bdf871d55561e (patch) | |
tree | 115061a36fd819406045e99bfa16780471d5bc12 /web/js/duplicates.js | |
parent | 6e07f9477d0218151f80a181c7832fe73c6accac (diff) |
Match body construction on Around with New setup.
On an around page on the HE cobrand, both bodies (HE and council) are
listed and so when you clicked the map (not on a HE road) the not-HE
code did not fire because it wasn't the only body present. But New.pm
calls only return the HE body because they call munge_report_new_bodies.
So it worked when you picked category/ moved pin. Around should call the
munge function too so bodies is set up same as on New.pm.
We need to always use the cobrand package, regardless of if it is a
valid cobrand or not (for e.g. Bromley/Hounslow tests).
Diffstat (limited to 'web/js/duplicates.js')
0 files changed, 0 insertions, 0 deletions