[BUGFIX] Follow-up to Migrate suggest receiver to Doctrine 36/51336/2
authorStanislas Rolland <typo3@sjbr.ca>
Wed, 18 Jan 2017 03:35:22 +0000 (22:35 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Wed, 18 Jan 2017 03:36:27 +0000 (04:36 +0100)
Change-Id: I4758f0289794ed447f48a9aab49e38f733530e89
Resolves: #79229
Reviewed-on: https://review.typo3.org/51336
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
Classes/Hook/Backend/Form/Wizard/SuggestReceiver.php

index 146a3a3..c81d757 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2017-01-17  Stanislas Rolland  <typo3(arobas)sjbr.ca>
 
        * Resolves #79359: Migrate PiBaseApi to Doctrine
+       * Follow-up to Resolves #79229: Migrate suggest receiver to Doctrine
 
 2017-01-10  Stanislas Rolland  <typo3(arobas)sjbr.ca>
 
index fd9102d..36e4ca1 100644 (file)
@@ -56,7 +56,7 @@ class SuggestReceiver extends \TYPO3\CMS\Backend\Form\Wizard\SuggestWizardDefaul
                        $searchString = $this->params['value'];
                        $searchUid = (int)$searchString;
                        if ($searchString !== '') {
-                               $likeCondition = ($searchWholePhrase ? '%' : '') . $searchString . '%';
+                               $likeCondition = ($searchWholePhrase ? '%' : '') . $this->queryBuilder->escapeLikeWildcards($searchString) . '%';
                                // Get the label field for the current language, if any is available
                                $lang = LocalizationUtility::getCurrentLanguage();
                                $lang = LocalizationUtility::getIsoLanguageKey($lang);