Foreign key: Display new field in case of an error

This commit is contained in:
Jakub Vrana
2026-02-10 19:28:02 +01:00
parent fb1b76e411
commit a417a21ba6
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
## Adminer dev
- Select: Disable Ctrl+click inline edit without UPDATE privilege
- Export: Remember unchecked objects (regression from 5.0.6)
- Foreign key: Display new field in case of an error
- PostgreSQL: Order NULL last
- PostgreSQL: Display all SQL command warnings and only once

View File

@@ -39,10 +39,10 @@ page_header(lang('Foreign key'), $error, array("table" => $TABLE), h($TABLE));
if ($_POST) {
ksort($row["source"]);
if ($_POST["add"]) {
$row["source"][] = "";
} elseif ($_POST["change"] || $_POST["change-js"]) {
if ($_POST["change"] || $_POST["change-js"]) {
$row["target"] = array();
} else {
$row["source"][] = "";
}
} elseif ($name != "") {
$foreign_keys = foreign_keys($TABLE);