diff --git a/import.php b/import.php index 85a78142ad..47880d037e 100644 --- a/import.php +++ b/import.php @@ -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));