aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Alert.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-03 22:18:05 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-03 22:18:05 +0100
commitb019beb393534919c249fa16e7ab07ac63fa52c5 (patch)
treed2dd1a1a97246c7bce6814f84ec09cd341301b6e /perllib/FixMyStreet/App/Controller/Alert.pm
parent5d2261eb81e9e28bbaa1f52c668be164bb7a597d (diff)
Fix bug whereby lat/lon were being stored the wrong way round in local alerts.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Alert.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Alert.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Alert.pm b/perllib/FixMyStreet/App/Controller/Alert.pm
index 70a86a936..d8e783431 100644
--- a/perllib/FixMyStreet/App/Controller/Alert.pm
+++ b/perllib/FixMyStreet/App/Controller/Alert.pm
@@ -257,7 +257,7 @@ sub set_local_alert_options : Private {
m{ \A local: ( [\+\-]? \d+ \.? \d* ) : ( [\+\-]? \d+ \.? \d* ) }xms )
{
$type = 'local_problems';
- push @params, $1, $2;
+ push @params, $2, $1; # Note alert parameters are lon,lat
}
my $options = {