aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Moderate.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-01-04 17:12:43 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-01-04 17:43:03 +0000
commitb3542314ac6480505b9939b2e46715a19dab8d49 (patch)
tree76fa788e6ee92e627a42e92bac7d22fcc77aa2ae /perllib/FixMyStreet/App/Controller/Moderate.pm
parent774c7a813da709fb46fca1a65d5c192d72266e14 (diff)
Compare assets on their ID field, not JS object.
As the selected feature is a clone (so it survives e.g. layer reloading from server after a pan), we need to compare the asset ID field instead to see if we already have a match, to prevent a double select(). This also fixes a bug where an auto-selected asset would, after picking a different asset, reshow the selected pin image onmouseout, due to the way OL was storing old hover state internally.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Moderate.pm')
0 files changed, 0 insertions, 0 deletions