mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Fix default selection on the account edit page
We used a mixture of account type IDs and account type descriptions on the account edit page. This resulted in the account type field always defaulting to "Normal user" after an invalid form had been submitted. Consistently use account type IDs to avoid this. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
ecf2caf7fb
commit
21e6c3f65f
2 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@ if (isset($_COOKIE["AURSID"])) {
|
|||
/* Verify user has permission to edit the account */
|
||||
if (can_edit_account($atype, $row, uid_from_sid($_COOKIE["AURSID"]))) {
|
||||
display_account_form($atype, "UpdateAccount", $row["Username"],
|
||||
$row["AccountType"], $row["Suspended"], $row["Email"],
|
||||
$row["AccountTypeID"], $row["Suspended"], $row["Email"],
|
||||
"", "", $row["RealName"], $row["LangPreference"],
|
||||
$row["IRCNick"], $row["PGPKey"], $row["ID"]);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue