diff --git a/ChangeLog b/ChangeLog
index 8b7a30839..28b180df8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug #2027720 [parser] Missing space after BINARY used as cast
- patch #2520747 [core] E_DEPRECATED compatibility for PHP 5.3,
thanks to Giovanni Giacobbi - themnemonic
+- bug [display] Message "Bookmark created" is not displaying
3.1.2.0 (2009-01-19)
- bug #1253252 [display] Can't NULL a column with relation defined
diff --git a/libraries/common.lib.php b/libraries/common.lib.php
index 4c322d78c..9a57d1109 100644
--- a/libraries/common.lib.php
+++ b/libraries/common.lib.php
@@ -1020,6 +1020,10 @@ function PMA_showMessage($message, $sql_query = null, $type = 'notice')
echo '
' . "\n";
if ($message instanceof PMA_Message) {
+ if (isset($GLOBALS['special_message'])) {
+ $message->addMessage($GLOBALS['special_message']);
+ unset($GLOBALS['special_message']);
+ }
$message->display();
$type = $message->getLevel();
} else {
diff --git a/sql.php b/sql.php
index 3a1aaa38a..2b5ce037e 100644
--- a/sql.php
+++ b/sql.php
@@ -2,7 +2,7 @@
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* @todo we must handle the case if sql.php is called directly with a query
- * what returns 0 rows - to prevent cyclic redirects or includes
+ * that returns 0 rows - to prevent cyclic redirects or includes
* @version $Id$
*/
@@ -105,7 +105,8 @@ if (isset($find_real_end) && $find_real_end) {
*/
if (isset($store_bkm)) {
PMA_Bookmark_save($fields, (isset($bkm_all_users) && $bkm_all_users == 'true' ? true : false));
- PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . $goto);
+ // go back to sql.php to redisplay query; do not use & in this case:
+ PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . $goto . '&label=' . $fields['label']);
} // end if
/**
@@ -617,6 +618,12 @@ else {
$disp_mode = 'nnnn110111';
}
+ if (isset($label)) {
+ $message = PMA_message::success('strBookmarkCreated');
+ $message->addParam($label);
+ $message->display();
+ }
+
PMA_displayTable($result, $disp_mode, $analyzed_sql);
PMA_DBI_free_result($result);