Skip to content

Commit

Permalink
Bug Fix: phpmyadmin#4365 Creating bookmark with multiple queries not …
Browse files Browse the repository at this point in the history
…working.

Signed-off-by: Ashutosh Dhundhara <[email protected]>
  • Loading branch information
ashutoshdhundhara committed Apr 15, 2014
1 parent 5a15fa7 commit 29fb3c8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions import.php
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,15 @@
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));
Expand Down

0 comments on commit 29fb3c8

Please sign in to comment.