aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/MapIt.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-05-23 08:30:03 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-05-23 11:45:14 +0100
commitc525f570acef784e09824d1444feffd7949b9ace (patch)
treeb5dd77f166885864461a0c7fd1ee3a9de5c9ac35 /perllib/FixMyStreet/MapIt.pm
parente305e5f0bd2c07aca54a3fc1453751ceca5f3509 (diff)
[UK] Update 2019 local government handling.
Diffstat (limited to 'perllib/FixMyStreet/MapIt.pm')
-rw-r--r--perllib/FixMyStreet/MapIt.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/MapIt.pm b/perllib/FixMyStreet/MapIt.pm
index d0a5f4760..238c5c62c 100644
--- a/perllib/FixMyStreet/MapIt.pm
+++ b/perllib/FixMyStreet/MapIt.pm
@@ -10,7 +10,7 @@ sub call {
# point in specifying it for that. 'areas' similarly if given IDs, but we
# might be looking up types or names, so might as well specify it then.
$opts{generation} = FixMyStreet->config('MAPIT_GENERATION')
- if $url ne 'area' && FixMyStreet->config('MAPIT_GENERATION');
+ if !$opts{generation} && $url ne 'area' && FixMyStreet->config('MAPIT_GENERATION');
return mySociety::MaPit::call($url, $params, %opts);
}