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:
@@ -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;
|
||||
}
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user