mirror of
https://github.com/vrana/adminer.git
synced 2026-02-23 23:21:20 +01:00
Foreign key: Display new field in case of an error
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user