Project

General

Profile

Actions

Bug #83301

closed

Story #82206: list module enhancements/bugfixes

ListView search returns all elements

Added by Hannes Lau over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend User Interface
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Yes
Sprint Focus:

Description

This issue is on the search function of the list module in the TYPO3 BE. Not the live search in the BE, not about FE searches.

Steps to reproduce
  • TYPO3 8.7
  • Log into the BE as an admin
  • Activate the "Indexed Search" extension
  • Switch to the list module
  • Create an indexed search configuration record (anywhere). Save and close.
  • Click the search icon in the header of the list view (Not the live search at the top right)
  • Enter a random search word like "aPPnmtdkRE"

Expected result: No items should be found at all
Actual result: The indexed search configuration will be found (allthough it does not contain 'aPPnmtdkRE'.

typo3/sysext/recordlist/Classes/RecordList/AbstractDatabaseRecordList.php:922

public function makeSearchString($table, $currentPid = -1)
        
        $searchableFields = $this->getSearchFields($table);
        if (empty($searchableFields)) {
            return '';
        }

If getSearchFields returns [], the searchString constraint is returned as ''. This results to no search constraint for the given table at all. Instead we should either
  • Search all fields of the given table
  • Return false, to remove the table from the search results entirely.

Related issues 1 (0 open1 closed)

Follows TYPO3 Core - Bug #77045: FormEngine extremely slow due to Doctrine changesClosedMorton Jonuschat2016-07-11

Actions
Actions

Also available in: Atom PDF