Skip to content

Commit

Permalink
ChangeLog entry for #14365. Load SQL query from the query parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Jul 16, 2018
1 parent d979781 commit be6b8d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -12,6 +12,7 @@ phpMyAdmin - ChangeLog
- issue #14390 Can't unhide tables
- issue #14382 "Visualize GIS data" icon missing
- issue #14435 Event scheduler status toggle doesn't work
- issue #14365, View not working on multiple servers

4.8.2 (2018-06-21)
- issue #14370 WHERE 0 causes Fatal error
Expand Down
6 changes: 2 additions & 4 deletions view_create.php
Expand Up @@ -40,10 +40,6 @@
'INVOKER'
);

if (empty($sql_query)) {
$sql_query = '';
}

// View name is a compulsory field
if (isset($_REQUEST['view']['name'])
&& empty($_REQUEST['view']['name'])
Expand Down Expand Up @@ -175,6 +171,8 @@
exit;
}

$sql_query = ! empty($_GET['sql_query']) ? $_GET['sql_query'] : '';

// prefill values if not already filled from former submission
$view = array(
'operation' => 'create',
Expand Down

0 comments on commit be6b8d4

Please sign in to comment.