Project

General

Profile

Actions

Bug #96796

closed

Wrong addition to title in SearchController

Added by Gerhard Rupp over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
Start date:
2022-02-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Line 477 ff.

        if ($this->multiplePagesType($row['item_type'])) {
            $dat = json_decode($row['static_page_arguments'], true);
            $pp = explode('-', $dat['key']);
            if ($pp[0] != $pp[1]) {
                $resultData['titleaddition'] = ', ' . LocalizationUtility::translate('result.page', 'IndexedSearch') . ' ' . $dat['key'];
            } else {
                $resultData['titleaddition'] = ', ' . LocalizationUtility::translate('result.pages', 'IndexedSearch') . ' ' . $pp[0];
            }
        }

The else block should only be executed if static_page_arguments is not empty as the addition to the title makes no sense without any additional (page) information.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #96795: Localization Labels used in wrong order in SearchControllerClosed2022-02-08

Actions
Actions

Also available in: Atom PDF