[BUGFIX] Allows setting extended search per default 33/54233/2
authorDominik Winkelbauer <dominik.winkelbauer@respon.se>
Thu, 2 Mar 2017 10:12:04 +0000 (11:12 +0100)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 29 Sep 2017 13:28:47 +0000 (15:28 +0200)
Makes it possible to enable extended search per default.

Change-Id: I793faa6d7f325661c193bf4661bfd924a6cfb69a
Resolves: #80091
Releases: master,8.7
Reviewed-on: https://review.typo3.org/54233
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/indexed_search/Classes/Controller/SearchController.php

index 8920274..e4c9a8b 100644 (file)
@@ -943,7 +943,7 @@ class SearchController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControlle
         // Adding search field value
         $this->view->assign('sword', $this->getSword());
         // Extended search
-        if ($search['extendedSearch']) {
+        if (!empty($searchData['extendedSearch'])) {
             // "Search for"
             $allSearchTypes = $this->getAllAvailableSearchTypeOptions();
             $this->view->assign('allSearchTypes', $allSearchTypes);