Merge pull request #11588 from Tithugues/f11550_master

Fix #11550 Regression in Find and replace
This commit is contained in:
Marc Delisle 2015-10-19 06:58:45 -04:00
commit d0c2d6d5b9
2 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,7 @@ phpMyAdmin - ChangeLog
+ issue #11438 Support JSON data type
+ issue Editing partitions in table Structure
- issue Tracking does not make sense for information_schema
- issue #11550 Regression in Find and replace
4.5.2.0 (not yet released)

View File

@ -622,11 +622,14 @@ class TableSearchController extends TableController
*/
public function findAction()
{
$useRegex = array_key_exists('useRegex', $_POST)
&& $_POST['useRegex'] == 'on';
$preview = $this->getReplacePreview(
$_POST['columnIndex'],
$_POST['find'],
$_POST['replaceWith'],
$_POST['useRegex'],
$useRegex,
$this->_connectionCharSet
);
$this->response->addJSON('preview', $preview);