Store timestamp and user ID when closing requests

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2019-11-23 12:00:52 -05:00
parent 4b97789bab
commit 2422fb020b
5 changed files with 21 additions and 6 deletions

View file

@ -247,6 +247,8 @@ function pkgreq_close($id, $reason, $comments, $auto_close=false) {
}
$q = "UPDATE PackageRequests SET Status = " . intval($status) . ", ";
$q.= "ClosedTS = " . strval(time()) . ", ";
$q.= "ClosedUID = " . ($uid == 0 ? "NULL" : intval($uid)) . ", ";
$q.= "ClosureComment = " . $dbh->quote($comments) . " ";
$q.= "WHERE ID = " . intval($id);
$dbh->exec($q);