diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-04-11 11:15:02 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-04-11 11:15:02 +0100 |
commit | a37eb834665ea7a88e9d900577f3189a9094dee7 (patch) | |
tree | 4d529a54d6e2bb4e3d3cea5a529ae7fe4b5e1303 | |
parent | 329a234c97dc7b8fa8280fee4ddb74a3e77f3a74 (diff) |
Strip UK from choices as currently done.
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 903a8b97e..71650c0e4 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -520,7 +520,12 @@ sub determine_location_from_pc : Private { # $error doubles up to return multiple choices by being an array if ( ref($error) eq 'ARRAY' ) { - @$error = map { decode_utf8($_) } @$error; + @$error = map { + decode_utf8($_); + s/, United Kingdom//; + s/, UK//; + $_; + } @$error; $c->stash->{possible_location_matches} = $error; return; } |