summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2019-11-23 18:00:52 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2019-11-23 18:30:46 +0100
commit2422fb020b79b387ef667d146cf3e0dd7b1faebf (patch)
tree4cfc7ab7f9e81ee1f6aa49dc6106a0e6960c5797 /web/lib
parent4b97789bab8dae01987ffa4cdeb1e1257c95834f (diff)
downloadaur-2422fb020b79b387ef667d146cf3e0dd7b1faebf.tar.gz
aur-2422fb020b79b387ef667d146cf3e0dd7b1faebf.tar.xz
Store timestamp and user ID when closing requests
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgreqfuncs.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/lib/pkgreqfuncs.inc.php b/web/lib/pkgreqfuncs.inc.php
index 079df38c..7fce307c 100644
--- a/web/lib/pkgreqfuncs.inc.php
+++ b/web/lib/pkgreqfuncs.inc.php
@@ -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);