taarifa / Taarifa_Web

THIS CODE BASE IS DEPRECATED AND ONLY HERE FOR ARCHIVAL PURPOSES!
http://www.taarifa.org
Other
18 stars 6 forks source link

Unwanted Geolocation In Administration Panel Reports #38

Closed markiliffe closed 12 years ago

markiliffe commented 12 years ago

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!
}