mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Require comments when flagging packages out-of-date
Implements FS#42827. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
6b7e26a2d1
commit
396e50bdc8
6 changed files with 27 additions and 12 deletions
|
@ -49,7 +49,12 @@ $output = "";
|
|||
$fragment = "";
|
||||
if (check_token()) {
|
||||
if (current_action("do_Flag")) {
|
||||
list($ret, $output) = pkgbase_flag($ids);
|
||||
if (strlen($_POST['comments']) >= 3) {
|
||||
list($ret, $output) = pkgbase_flag($ids, $_POST['comments']);
|
||||
} else {
|
||||
$output = __("The selected packages have not been flagged, please enter a comment.");
|
||||
$ret = false;
|
||||
}
|
||||
} elseif (current_action("do_UnFlag")) {
|
||||
list($ret, $output) = pkgbase_unflag($ids);
|
||||
} elseif (current_action("do_Adopt")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue