When looking at a report in the administration panel - for instance changing the status of a report - the geolocation code is run and changes the location of the report. This is bug like behaviour as editing a report should not change the location, only reporting for the first time should run the geolocation code. A way of fixing this would be an IF statement that uses the current page as a variable, for instance;
if (Page == 'Submit Report') {
run geolocation code;
} else {
do nothing!
}
When looking at a report in the administration panel - for instance changing the status of a report - the geolocation code is run and changes the location of the report. This is bug like behaviour as editing a report should not change the location, only reporting for the first time should run the geolocation code. A way of fixing this would be an IF statement that uses the current page as a variable, for instance;