Save comment when closing requests

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2015-12-12 18:25:10 +01:00
parent b8c1cd7cc3
commit 5931d5ceec
3 changed files with 10 additions and 1 deletions

View file

@ -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);