diff options
author | matthew <matthew> | 2007-05-15 13:43:20 +0000 |
---|---|---|
committer | matthew <matthew> | 2007-05-15 13:43:20 +0000 |
commit | fbe6dff68a4c5ed8f1c00646a01bf1cbc8fab95b (patch) | |
tree | ae28a137b37b6cfdbcb88c554fd23132da0bf4a4 /bin/send-reports | |
parent | 25851744776d0d78cc3347d5769a4999fcebe0f9 (diff) |
If someone leaves an update on a problem, count that as "refreshing" the
problem. Rename db field to lastupdate to make this all clearer. Tidy up
some code.
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-x | bin/send-reports | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/send-reports b/bin/send-reports index 06aef0d4b..d3089a03c 100755 --- a/bin/send-reports +++ b/bin/send-reports @@ -6,7 +6,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: send-reports,v 1.37 2007-05-11 09:02:53 matthew Exp $ +# $Id: send-reports,v 1.38 2007-05-15 13:43:20 matthew Exp $ use strict; require 5.8.0; @@ -131,7 +131,7 @@ If you know of an appropriate contact address, please do get in touch. ]\n\n"; } if ($result == mySociety::Util::EMAIL_SUCCESS) { dbh()->do('UPDATE problem SET whensent=ms_current_timestamp(), - laststatechange=ms_current_timestamp() WHERE id=?', {}, $row->{id}); + lastupdate=ms_current_timestamp() WHERE id=?', {}, $row->{id}); dbh()->commit(); } else { dbh()->rollback(); |