From c6c39d2b2e50d24743b3e0f571e433216937e061 Mon Sep 17 00:00:00 2001 From: Herman van Rink Date: Fri, 12 Jun 2009 12:35:18 +0000 Subject: [PATCH] rfe #2726479 [export] Export tables preselect --- ChangeLog | 1 + db_export.php | 11 +++++++---- db_structure.php | 2 ++ libraries/mult_submits.inc.php | 5 +++++ libraries/plugin_interface.lib.php | 2 +- server_export.php | 2 +- 6 files changed, 17 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 945fd87d0..8c8def0b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA + patch #2724755 [display] Full/partial text links (big T) are back, thanks to nullbarriere - nullbarriere - bug [display] handle NavigationBarIconic as documented for navi buttons ++ rfe #2726479 [export] Export tables preselect 3.2.1.0 (not yet released) - bug #2799009 Login with ipv6 IP address breaks redirect diff --git a/db_export.php b/db_export.php index ff60d8f31..ad4b1e49b 100644 --- a/db_export.php +++ b/db_export.php @@ -44,18 +44,21 @@ $multi_values .= '' . $strUnselectAll . '
'; -$multi_values .= ''; $multi_values .= "\n"; +if (!empty($selected_tbl) && empty($table_select)) { + $table_select = $selected_tbl; +} + foreach ($tables as $each_table) { // ok we show also views //if (is_null($each_table['Engine'])) { // Don't offer to export views yet. // continue; //} - if (! empty($unselectall) - || (isset($tmp_select) - && false !== strpos($tmp_select, '|' . $each_table['Name'] . '|'))) { + if (! empty($unselectall) + || !in_array($each_table['Name'], $table_select)) { $is_selected = ''; } else { $is_selected = ' selected="selected"'; diff --git a/db_structure.php b/db_structure.php index b66eb8e93..b53cc92a9 100644 --- a/db_structure.php +++ b/db_structure.php @@ -493,6 +493,8 @@ echo ' ' . "\n"; echo ' ' . "\n"; +echo ' ' . "\n"; ?>