From dadddc42f5e5c4b3a02db9171a485885b1e365a7 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Tue, 26 Jun 2018 18:18:56 +0100 Subject: [UK] Fix issue when body ID not equal to MapIt ID. Hitherto when creating a body or ward alert on a UK site, the MapIt area ID has been stored instead of the body ID. This is okay for www.fixmystreet.com which for historical reasons does have body IDs that match MapIt area IDs, but other UK-based sites may well not. The alert lookup looks for body ID, meaning those alerts will not work. Save the body ID instead, plus fix some tests that were making the same assumption. --- t/Mock/MapIt.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 't/Mock/MapIt.pm') diff --git a/t/Mock/MapIt.pm b/t/Mock/MapIt.pm index c57f7e0ed..8cb5d777f 100644 --- a/t/Mock/MapIt.pm +++ b/t/Mock/MapIt.pm @@ -37,6 +37,9 @@ my @PLACES = ( [ 'WS1 4NH', 52.563074, -1.991032, 2535, 'Sandwell Borough Council', 'MTD' ], [ 'OX28 4DS', 51.784721, -1.494453 ], [ 'E14 2DN', 51.508536, '0.000001' ], + # Norway + [ '3290', 59, 10, 709, 'Larvik', 'NKO', 7, 'Vestfold', 'NFY' ], + [ '0045', "59.9", "10.9", 301, 'Oslo', 'NKO', 3, 'Oslo', 'NFY' ], ); sub dispatch_request { -- cgit v1.2.3