[aur-dev] [PATCH] Fixup for missing changes in 6ec4a3589
Johannes Löthberg
johannes at kyriasis.com
Wed Jun 22 20:29:49 UTC 2016
Commit 6ec4a3589 forgot to change the usages of the display_account_form
and process_account_form function to account for the new parameter, and
forgot to add the new column to aur-schema.sql.
Signed-off-by: Johannes Löthberg <johannes at kyriasis.com>
---
Accidentally broke editing account details. It took me way too long to
figure this out..
schema/aur-schema.sql | 1 +
web/html/account.php | 8 +++++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/schema/aur-schema.sql b/schema/aur-schema.sql
index 0804ac3..4c495ea 100644
--- a/schema/aur-schema.sql
+++ b/schema/aur-schema.sql
@@ -40,6 +40,7 @@ CREATE TABLE Users (
RegistrationTS TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
CommentNotify TINYINT(1) NOT NULL DEFAULT 1,
UpdateNotify TINYINT(1) NOT NULL DEFAULT 0,
+ OwnershipNotify TINYINT(1) NOT NULL DEFAULT 1,
PRIMARY KEY (ID),
UNIQUE (Username),
UNIQUE (Email),
diff --git a/web/html/account.php b/web/html/account.php
index 9007ace..c77aedb 100644
--- a/web/html/account.php
+++ b/web/html/account.php
@@ -36,7 +36,7 @@ if ($action == "UpdateAccount") {
in_request("C"), in_request("R"), in_request("L"),
in_request("I"), in_request("K"), in_request("PK"),
in_request("J"), in_request("CN"), in_request("UN"),
- in_request("ID"), $row["Username"]);
+ in_request("ON"), in_request("ID"), $row["Username"]);
}
}
@@ -83,7 +83,8 @@ if (isset($_COOKIE["AURSID"])) {
$row["HideEmail"], "", "", $row["RealName"],
$row["LangPreference"], $row["IRCNick"], $row["PGPKey"], $PK,
$row["InactivityTS"] ? 1 : 0, $row["CommentNotify"],
- $row["UpdateNotify"], $row["ID"], $row["Username"]);
+ $row["UpdateNotify"], $row["OwnershipNotify"],
+ $row["ID"], $row["Username"]);
} else {
print __("You do not have permission to edit this account.");
}
@@ -124,7 +125,8 @@ if (isset($_COOKIE["AURSID"])) {
in_request("I"), in_request("K"),
in_request("PK"), in_request("J"),
in_request("CN"), in_request("UN"),
- in_request("ID"), $row["Username"]);
+ in_request("ON"), in_request("ID"),
+ $row["Username"]);
}
} else {
--
2.9.0
More information about the aur-dev
mailing list