Fix schema export with too many tables
We need to submit tables in POST parameters as there can be too many of them to be included in GET. Fixes #12234 Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
d88ebebc89
commit
b3132bf2c8
@ -3,6 +3,7 @@ phpMyAdmin - ChangeLog
|
||||
|
||||
4.6.2 (not yet released)
|
||||
- issue #12225 Use https for documentation links
|
||||
- issue #12234 Fix schema export with too many tables
|
||||
|
||||
4.6.1 (2016-05-02)
|
||||
- issue #12120 PMA_Util not found in insert_edit.lib.php
|
||||
|
||||
@ -1039,10 +1039,16 @@ function Export_pages()
|
||||
PMA_ajaxRemoveMessage($msgbox);
|
||||
|
||||
var $form = $(data.message);
|
||||
$form.attr('action', $form.attr('action') + '?' + (Get_url_pos(true).substring(1)));
|
||||
if (!pmd_tables_enabled) {
|
||||
$form.append('<input type="hidden" name="offline_export" value="true" />');
|
||||
}
|
||||
$.each(Get_url_pos(true).substring(1).split('&'), function() {
|
||||
var pair = this.split('=');
|
||||
var input = $('<input type="hidden" />');
|
||||
input.attr('name', pair[0]);
|
||||
input.attr('value', pair[1]);
|
||||
$form.append(input);
|
||||
});
|
||||
var $formatDropDown = $form.find('#plugins');
|
||||
$formatDropDown.change(function() {
|
||||
var format = $formatDropDown.val();
|
||||
|
||||
@ -8,4 +8,4 @@
|
||||
<input type="hidden" name="page_number" value="<?= htmlspecialchars($page); ?>" />
|
||||
<?= PMA_pluginGetOptions('Schema', $export_list); ?>
|
||||
</fieldset>
|
||||
</form>
|
||||
</form>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user