diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-10-04 16:49:14 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-10-04 16:49:14 +0100 |
commit | fd9cbe6ae8c30a8da959caabff03a48e6ea43a0c (patch) | |
tree | fe47b2da5f9ff59b2ad5db3180ad313c58eb8220 /perllib | |
parent | 80de03a6b15aa1e16cb7169831adcf65829a1120 (diff) |
Determine location before possible redirect.
If you changed the around filters on a URL with latitude/longitude, the
co-ordinates were not passed through as determine_location needed to be
called first.
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 7766e08a1..75f54facf 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -86,7 +86,7 @@ sub report_new : Path : Args(0) { # work out the location for this report and do some checks # Also show map if we're just updating the filters return $c->forward('redirect_to_around') - if $c->get_param('filter_update') || !$c->forward('determine_location'); + if !$c->forward('determine_location') || $c->get_param('filter_update'); # create a problem from the submitted details $c->stash->{template} = "report/new/fill_in_details.html"; |