mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use a link to accept orphan requests
Currently, a form is used instead of a link. This forwards to a confirmation page, and currently drops the "via" parameter in the process. As a result, accepted orphan requests usually show: Request #XXXXXX has been accepted automatically by the Arch User Repository package request system: The user YYYYYYY disowned the package. This is wrong, and should show (will show, if you manually add it or use the close button instead of the accept button): Request #XXXXXX has been rejected by YYYYYYY [1]: Fixes FS#56606. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
ce93360257
commit
0ffa0679d2
1 changed files with 1 additions and 5 deletions
|
@ -82,11 +82,7 @@
|
|||
<a href="<?= get_pkgbase_uri($row['Name']) ?>merge/?into=<?= urlencode($row['MergeInto']) ?>&via=<?= intval($row['ID']) ?>"><?= __('Accept') ?></a>
|
||||
<br />
|
||||
<?php elseif ($row['Type'] == 'orphan' && $due): ?>
|
||||
<form action="<?= get_pkgbase_uri($row['Name']) . 'disown/'; ?>" method="post">
|
||||
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
||||
<input type="hidden" name="via" value="<?= intval($row['ID']) ?>" />
|
||||
<input type="submit" class="button text-button" name="do_Disown" value="<?= __('Accept') ?>" />
|
||||
</form>
|
||||
<a href="<?= get_pkgbase_uri($row['Name']) ?>disown/?via=<?= intval($row['ID']) ?>"><?= __('Accept') ?></a>
|
||||
<?php elseif ($row['Type'] == 'orphan' && !$due): ?>
|
||||
<?= __('Locked') ?> (<?= $time_left_fmt ?>)
|
||||
<br />
|
||||
|
|
Loading…
Add table
Reference in a new issue