Merge pull request #1140 from ashutoshdhundhara/bugfix_4365
Bug Fix: #4365 Creating bookmark with multiple queries not working.
This commit is contained in:
commit
8ca0879500
@ -624,6 +624,15 @@ if ($go_sql) {
|
||||
null, null
|
||||
);
|
||||
} else if ($result) {
|
||||
// Save a Bookmark with more than one queries (if Bookmark label given).
|
||||
if (! empty($_POST['bkm_label']) && ! empty($import_text)) {
|
||||
PMA_storeTheQueryAsBookmark(
|
||||
$db, $GLOBALS['cfg']['Bookmark']['user'],
|
||||
$import_text, $_POST['bkm_label'],
|
||||
isset($_POST['bkm_replace']) ? $_POST['bkm_replace'] : null
|
||||
);
|
||||
}
|
||||
|
||||
$response = PMA_Response::getInstance();
|
||||
$response->isSuccess(true);
|
||||
$response->addJSON('message', PMA_Message::success($msg));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user