diff options
author | Hugues Peccatte <hugues.peccatte@gmail.com> | 2014-02-24 23:54:11 +0400 |
---|---|---|
committer | Hugues Peccatte <hugues.peccatte@gmail.com> | 2014-02-24 23:54:11 +0400 |
commit | 5cf8424a7f36f9e3f7603146f2e258ac6180e1dc (patch) | |
tree | 3a1b34c7a42fab2536048cf93ebe32f0f6b5d7c3 /db_qbe.php | |
parent | 1fa4cdf800e433146630d88ae3ef58d2372f1ad5 (diff) |
Add hint to update a search.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'db_qbe.php')
-rw-r--r-- | db_qbe.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db_qbe.php b/db_qbe.php index b5ca7ea0c0..4df2fa7870 100644 --- a/db_qbe.php +++ b/db_qbe.php @@ -21,6 +21,7 @@ $cfgRelation = PMA_getRelationsParam(); $savedSearchList = array(); $currentSearchId = null; +$displayUpdateSearchHint = false; if ($cfgRelation['savedsearcheswork']) { include 'libraries/SavedSearches.php'; $header = $response->getHeader(); @@ -39,6 +40,7 @@ if ($cfgRelation['savedsearcheswork']) { if ('save' === $_REQUEST['action']) { $saveResult = $savedSearch->setCriterias($_REQUEST) ->save(); + $displayUpdateSearchHint = true; /*if (!$saveResult) { $response->addHTML('raté'); exit(); @@ -52,6 +54,7 @@ if ($cfgRelation['savedsearcheswork']) { $_REQUEST = array(); } elseif ('load' === $_REQUEST['action']) { $loadResult = $savedSearch->load(); + $displayUpdateSearchHint = true; } //Else, it's an "update query" } @@ -115,5 +118,15 @@ if ($cfgRelation['designerwork']) { ) ); } +if ($displayUpdateSearchHint) { + $response->addHTML( + PMA_Message::notice( + __( + 'After saving or loading a search, you can rename it and save the ' + . 'new criterias.' + ) + ) + ); +} $response->addHTML($db_qbe->getSelectionForm($cfgRelation)); ?> |