diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-02-08 13:18:55 +0000 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-02-08 13:18:55 +0000 |
commit | 373ba6c49d1f83701e2e9870a4d1ea9dee9e101a (patch) | |
tree | d9248e78b3317da1437612b95fccbc32031ad7df | |
parent | ff5c250a543562e37901776784cbb53b2646cf8e (diff) |
convert partial token loading
-rwxr-xr-x | web/index.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/index.cgi b/web/index.cgi index e503f50ba..e0c16ad30 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -47,13 +47,13 @@ sub main { my $id = mySociety::AuthToken::retrieve('partial', $partial); if ($id) { my @row = dbh()->selectrow_array( - "select easting, northing, name, email, title, (photo is not null) as has_photo, phone, detail + "select latitude, longitude, name, email, title, (photo is not null) as has_photo, phone, detail from problem where id=? and state='partial'", {}, $id); if (@row) { $q->param('anonymous', 1); $q->param('submit_map', 1); - $q->param('easting', $row[0]); - $q->param('northing', $row[1]); + $q->param('latitude', $row[0]); + $q->param('longitude', $row[1]); $q->param('name', $row[2]); $q->param('email', $row[3]); $q->param('title', $row[4]); |