diff options
author | Matthew Somerville <matthew@cake.ukcod.org.uk> | 2010-05-12 14:33:40 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@cake.ukcod.org.uk> | 2010-05-12 14:33:40 +0100 |
commit | cc5f1f9fdcd215952c5defede623f5d2298143c3 (patch) | |
tree | fa2f9ceb6d6a2d804826b083d2db2a7adbab1456 /perllib/Page.pm | |
parent | 7c9d76755e99e62c3c43065cae785c02086a9e92 (diff) |
Add confirmed column to update table.
Diffstat (limited to 'perllib/Page.pm')
-rw-r--r-- | perllib/Page.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm index e569bd6d5..fcf11f7f7 100644 --- a/perllib/Page.pm +++ b/perllib/Page.pm @@ -853,10 +853,10 @@ sub display_problem_updates($$) { my ($id, $q) = @_; my $cobrand = get_cobrand($q); my $updates = select_all( - "select id, name, extract(epoch from created) as created, text, + "select id, name, extract(epoch from confirmed) as confirmed, text, mark_fixed, mark_open, (photo is not null) as has_photo, cobrand from comment where problem_id = ? and state='confirmed' - order by created", $id); + order by confirmed", $id); my $out = ''; if (@$updates) { $out .= '<div id="updates">'; @@ -864,9 +864,9 @@ sub display_problem_updates($$) { foreach my $row (@$updates) { $out .= "<div><div class=\"problem-update\"><p><a name=\"update_$row->{id}\"></a><em>"; if ($row->{name}) { - $out .= sprintf(_('Posted by %s at %s'), ent($row->{name}), prettify_epoch($q, $row->{created})); + $out .= sprintf(_('Posted by %s at %s'), ent($row->{name}), prettify_epoch($q, $row->{confirmed})); } else { - $out .= sprintf(_('Posted anonymously at %s'), prettify_epoch($q, $row->{created})); + $out .= sprintf(_('Posted anonymously at %s'), prettify_epoch($q, $row->{confirmed})); } $out .= Cobrand::extra_update_meta_text($cobrand, $row); $out .= ', ' . _('marked as fixed') if ($row->{mark_fixed}); |