From fd9cbe6ae8c30a8da959caabff03a48e6ea43a0c Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Tue, 4 Oct 2016 16:49:14 +0100 Subject: 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. --- perllib/FixMyStreet/App/Controller/Report/New.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perllib/FixMyStreet/App/Controller') 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"; -- cgit v1.2.3