Actions
Bug #78353
closedPageLayoutView::makeQueryArray (inherited from AbstractDatabaseRecordList) creates invalid SQL
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-10-19
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Description
Steps to reproduce:
- Register a content preview hook
- From within that hook, call `$parentObject->makeQueryArray('tt_content', $ignoredUid, 'AND uid > 0');`
- Resulting query contains `1=1 AND uid > 0 1=1`
Behavior is different compared to LTS at least and comparing the commit that changed the returned query it also seems clear that the condition would be malformed if returned this way.
Returning an empty string solves the problem and does not break the search feature.
Actions