diff options
author | Matthew Somerville <matthew@cake.ukcod.org.uk> | 2010-04-25 22:13:34 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@cake.ukcod.org.uk> | 2010-04-25 22:13:34 +0100 |
commit | bc9cbfa11ea4d5e9f587f2f8d90c691ecf037b62 (patch) | |
tree | 34a56f3c353f0761e171395a1304afc5b9a7ca1b | |
parent | f9c20795a043507cfb5325ae5b54c4bff4751044 (diff) |
Fetch detail from partial link.
-rwxr-xr-x | web/index.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi index 153234694..e39dd8921 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -47,7 +47,7 @@ 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 + "select easting, northing, 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); @@ -59,6 +59,7 @@ sub main { $q->param('title', $row[4]); $q->param('has_photo', $row[5]); $q->param('phone', $row[6]); + $q->param('detail', $row[7]); $q->param('partial', $partial); } else { my $base = mySociety::Config::get('BASE_URL'); |