Actions
Bug #85486
closedcObj->searchWhere is broken using more than one search field
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2018-07-05
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Description
Hi,
the OR-parts of the searchfields in the method cObj->searchWhere has to be grouped in parentheses like in TYPO3 7. Otherwise the complete search condition using the method could be misinterpreted.
Wrong result:
AND (tt_content.header LIKE '%sdf%') OR (tt_content.subheader LIKE '%sdf%')
Right result:
AND ((tt_content.header LIKE '%sdf%') OR (tt_content.subheader LIKE '%sdf%'))
Thanks for fixing.
Actions