diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-26 13:23:12 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-26 13:23:12 +0100 |
commit | 14a70af1b2e89efef459cf206ef88683889ab10c (patch) | |
tree | 8d1b61d0638f58f456e1ef7b30cbd02de1aba6a4 /perllib/FixMyStreet/App/Controller/Contact.pm | |
parent | a04abdebaf280cbfbad65fabb2c64d88f9e3d72c (diff) | |
parent | 0030a9d9760c1f8733fb5b64486aaa634d1023bb (diff) |
Merge branch 'migrate_to_catalyst' of ssh://matthew@git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Contact.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Contact.pm | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Contact.pm b/perllib/FixMyStreet/App/Controller/Contact.pm index 0e6e60944..558a354c6 100644 --- a/perllib/FixMyStreet/App/Controller/Contact.pm +++ b/perllib/FixMyStreet/App/Controller/Contact.pm @@ -76,14 +76,11 @@ sub determine_contact_type : Private { ); if ($update_id) { + my $update = $c->model('DB::Comment')->find( + { id => $update_id } + ); - # FIXME: updates not implemented yet - -# my $u = dbh()->selectrow_hashref( -# 'select comment.text, comment.name, problem.title, extract(epoch from comment.confirmed) as confirmed -# from comment, problem where comment.id=? -# and comment.problem_id = problem.id -# and comment.problem_id=?', {}, $update_id ,$id); + $c->stash->{update} = $update; } elsif ($problem) { $c->stash->{problem} = $problem; |