Merge #16754 - Fix #16703 - No SQL option on Export of rows from a table

Pull-request: #16754
Fixes: #16703

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-03-23 00:41:51 +01:00
commit 07ea06d0c6
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
3 changed files with 3 additions and 3 deletions

View File

@ -140,7 +140,7 @@ final class ExportController extends AbstractController
$export_type = 'database';
}
$GLOBALS['single_table'] = $_POST['single_table'] ?? $_GET['single_table'] ?? null;
$GLOBALS['single_table'] = $_POST['single_table'] ?? $_GET['single_table'] ?? $GLOBALS['single_table'] ?? null;
$exportList = Plugins::getExport($export_type, isset($GLOBALS['single_table']));

View File

@ -64,7 +64,7 @@ final class ExportController extends AbstractController
$unlim_num_rows = 0;
}
$GLOBALS['single_table'] = $_POST['single_table'] ?? $_GET['single_table'] ?? null;
$GLOBALS['single_table'] = $_POST['single_table'] ?? $_GET['single_table'] ?? $GLOBALS['single_table'] ?? null;
$exportList = Plugins::getExport('server', isset($GLOBALS['single_table']));

View File

@ -107,7 +107,7 @@ class ExportController extends AbstractController
$unlim_num_rows = 0;
}
$GLOBALS['single_table'] = $_POST['single_table'] ?? $_GET['single_table'] ?? null;
$GLOBALS['single_table'] = $_POST['single_table'] ?? $_GET['single_table'] ?? $GLOBALS['single_table'] ?? null;
$exportList = Plugins::getExport('table', isset($GLOBALS['single_table']));