1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 09:34:10 +02:00

Skip generated columns in multi-edit (bug #882)

This commit is contained in:
Jakub Vrana
2025-03-06 19:32:19 +01:00
parent 7b5a20334d
commit 7351980beb
2 changed files with 4 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ if ($_POST && !$error) {
$affected = 0;
$set = array();
if (!$_POST["delete"]) {
foreach ($columns as $name => $val) { //! should check also for edit or insert privileges
foreach ($_POST["fields"] as $name => $val) {
$val = process_input($fields[$name]);
if ($val !== null && ($_POST["clone"] || $val !== false)) {
$set[idf_escape($name)] = ($val !== false ? $val : idf_escape($name));
@@ -146,7 +146,8 @@ if ($_POST && !$error) {
}
queries_redirect(remove_from_uri($_POST["all"] && $_POST["delete"] ? "page" : ""), $message, $result);
if (!$_POST["delete"]) {
edit_form($TABLE, $fields, (array) $_POST["fields"], !$_POST["clone"]);
$post_fields = (array) $_POST["fields"];
edit_form($TABLE, array_intersect_key($fields, $post_fields), $post_fields, !$_POST["clone"]);
page_footer();
exit;
}

View File

@@ -1,6 +1,7 @@
Adminer dev:
Speed up with disabled output buffering
Don't autofocus computed fields in insert form
Skip generated columns in multi-edit (bug #882)
PostgreSQL: Compute size of all databases (bug #881)
PostgreSQL: Do not alter indexes with expressions
PostgreSQL: Fix export of indexes with expressions (bug #768)