commit
5c8ed0e35e
@ -106,6 +106,7 @@ if (! empty($sql_query)) {
|
||||
$import_text = $sql_query;
|
||||
$import_type = 'query';
|
||||
$format = 'sql';
|
||||
$_SESSION['sql_from_query_box'] = true;
|
||||
|
||||
// If there is a request to ROLLBACK when finished.
|
||||
if (isset($_REQUEST['rollback_query'])) {
|
||||
|
||||
@ -2369,7 +2369,12 @@ function PMA_executeQueryAndSendQueryResponse($analyzed_sql_results,
|
||||
if (PMA_isRememberSortingOrder($analyzed_sql_results)
|
||||
&& ! isset($analyzed_sql_results['analyzed_sql'][0]['queryflags']['union'])
|
||||
) {
|
||||
PMA_handleSortOrder($db, $table, $analyzed_sql_results, $sql_query);
|
||||
if(!isset($_SESSION['sql_from_query_box'])) {
|
||||
PMA_handleSortOrder($db, $table, $analyzed_sql_results, $sql_query);
|
||||
} else {
|
||||
unset($_SESSION['sql_from_query_box']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$displayResultsObject = new PMA_DisplayResults(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user