Project

General

Profile

Actions

Bug #85486

closed

cObj->searchWhere is broken using more than one search field

Added by Stefan Berger almost 6 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Database API (Doctrine DBAL)
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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #77455: Doctrine: Migrate ContentObjectRendererClosedMorton Jonuschat2016-08-09

Actions
Actions #1

Updated by Susanne Moog over 5 years ago

  • Target version changed from 8.7.19 to Candidate for patchlevel
Actions #2

Updated by Georg Ringer about 4 years ago

  • Related to Task #77455: Doctrine: Migrate ContentObjectRenderer added
Actions #3

Updated by Georg Ringer about 4 years ago

  • Category set to Database API (Doctrine DBAL)
  • Status changed from New to Accepted
  • Is Regression set to Yes
Actions #4

Updated by Gerrit Code Review about 4 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63692

Actions #5

Updated by Gerrit Code Review about 4 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63692

Actions #6

Updated by Gerrit Code Review about 4 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63732

Actions #7

Updated by Georg Ringer about 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack about 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF