Skip to content
Snippets Groups Projects
Commit 143b84ef authored by Claus Due's avatar Claus Due Committed by Benni Mack
Browse files

[BUGFIX] Prevent malformed SQL query in AbstractDatabaseRecordList

This change prevents the creation of a malformed SQL query in
AbstractDatabaseRecordList::makeQueryArray. The problem was
caused by the makeSearchString method returning `1=1` from two
early decisions, whereas before it would return a valid query
prepended with AND but containing no search clauses.

Returning an empty string from these two early decisions will
completely solve the issue without breaking the search feature
that uses this function.

Change-Id: Ic9b48bc498a7423d158057fbcee05f976ee1dadf
Resolves: #78353
Releases: master
Reviewed-on: https://review.typo3.org/50284


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarBenni Mack <benni@typo3.org>
parent 1eb96565
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment