mirror of
https://github.com/vrana/adminer.git
synced 2026-02-23 15:11:23 +01:00
Export: Remember unchecked objects (regression from 5.0.6)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
## Adminer dev
|
||||
- Export: Remember unchecked objects (regression from 5.0.6)
|
||||
- PostgreSQL: Order NULL last
|
||||
|
||||
## Adminer 5.4.2 (released 2026-02-08)
|
||||
|
||||
@@ -4,8 +4,14 @@ namespace Adminer;
|
||||
$TABLE = $_GET["dump"];
|
||||
|
||||
if ($_POST && !$error) {
|
||||
$default = array("auto_increment" => '');
|
||||
foreach (array("type", "routine", "event", "trigger") as $support) {
|
||||
if (support($support)) {
|
||||
$default[$support . "s"] = '';
|
||||
}
|
||||
}
|
||||
save_settings(
|
||||
array_intersect_key($_POST, array_flip(array("output", "format", "db_style", "types", "routines", "events", "table_style", "auto_increment", "triggers", "data_style"))),
|
||||
array_intersect_key($_POST + $default, array_flip(array("output", "format", "db_style", "table_style", "data_style")) + $default),
|
||||
"adminer_export"
|
||||
);
|
||||
$tables = array_flip((array) $_POST["tables"]) + array_flip((array) $_POST["data"]);
|
||||
@@ -153,10 +159,6 @@ $row = get_settings("adminer_export");
|
||||
if (!$row) {
|
||||
$row = array("output" => "text", "format" => "sql", "db_style" => (DB != "" ? "" : "CREATE"), "table_style" => "DROP+CREATE", "data_style" => "INSERT");
|
||||
}
|
||||
if (!isset($row["events"])) { // backwards compatibility
|
||||
$row["routines"] = $row["events"] = ($_GET["dump"] == "");
|
||||
$row["triggers"] = $row["table_style"];
|
||||
}
|
||||
|
||||
echo "<tr><th>" . lang('Output') . "<td>" . html_radios("output", adminer()->dumpOutput(), $row["output"]) . "\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user