Allow for adding a comment when closing a request

This allows Trusted Users to optionally add a comment when closing a
request. The comment is included in the notification email that is sent
to the requests mailing list.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-07-04 11:00:07 +02:00
parent 8a465182ba
commit 4645bcbacb
4 changed files with 20 additions and 6 deletions

View file

@ -540,7 +540,7 @@ function pkgbase_delete ($atype, $base_ids, $merge_base_id, $via) {
$dbh->exec($q);
if ($via) {
pkgreq_close(intval($via), 'accepted');
pkgreq_close(intval($via), 'accepted', '');
}
return array(true, __("The selected packages have been deleted."));
@ -598,7 +598,7 @@ function pkgbase_adopt ($atype, $base_ids, $action=true, $via) {
$dbh->exec($q);
if ($via) {
pkgreq_close(intval($via), 'accepted');
pkgreq_close(intval($via), 'accepted', '');
}
if ($action) {