diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-12-12 18:25:10 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-12-13 10:22:58 +0100 |
commit | 5931d5ceec133ad1eee33faee96be061e011dacd (patch) | |
tree | 9195e3443c36d342b673d9470ee7bd79d4274ec2 /web/lib/pkgreqfuncs.inc.php | |
parent | b8c1cd7cc3270563ef0c4abed930a9f63e1eefce (diff) | |
download | aurweb-5931d5ceec133ad1eee33faee96be061e011dacd.tar.xz |
Save comment when closing requests
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/lib/pkgreqfuncs.inc.php')
-rw-r--r-- | web/lib/pkgreqfuncs.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/lib/pkgreqfuncs.inc.php b/web/lib/pkgreqfuncs.inc.php index 3ea4692..c1a4931 100644 --- a/web/lib/pkgreqfuncs.inc.php +++ b/web/lib/pkgreqfuncs.inc.php @@ -227,7 +227,8 @@ function pkgreq_close($id, $reason, $comments, $auto_close=false) { return array(false, __("Only TUs and developers can close requests.")); } - $q = "UPDATE PackageRequests SET Status = " . intval($status) . " "; + $q = "UPDATE PackageRequests SET Status = " . intval($status) . ", "; + $q.= "ClosureComment = " . $dbh->quote($comments) . " "; $q.= "WHERE ID = " . intval($id); $dbh->exec($q); |