Project

General

Profile

Actions

Bug #90165

closed

Incorrect comparison in indexed_search SearchController do not set configured languageUid

Added by form4 GmbH & Co. KG almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
-
Start date:
2020-01-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

The indexed_search SearchController->initialize() function creates the wrong languageUid in search settings.

The condition

if ($searchData['languageUid'] ?? '' === 'current')

is true, if the $searchData['languageUid'] is set. The value of the $searchData['languageUid'] doesn't matter.

This is the case, because the

'' === 'current'

comparission is evaluated first, than the

$searchData['languageUid'] ?? false

operator.

The correct condition would be

if (($searchData['languageUid'] ?? '') === 'current')
Actions #1

Updated by Gerrit Code Review over 4 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63628

Actions #2

Updated by Gerrit Code Review over 4 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63589

Actions #3

Updated by Benni Mack over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF