Project

General

Profile

Actions

Bug #81353

closed

Query errors in StaticRecordCollection

Added by Rainer Becker over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2017-05-28
Due date:
% Done:

100%

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

Description

Using the StaticRecordCollection leads to sql errors and wont find the right results (8.7.1).

change line 163

$statement = $queryBuilder->select($this->getItemTableName() . '.*')

to
$statement = $queryBuilder->select($this->getItemTableName()  . '_join.*')

change line 179

'sys_collection_entries_join.uid_local',

to
'sys_collection_entries_join.uid_foreign',

Actions #1

Updated by Rainer Becker over 6 years ago

To sort the found records add

->orderBy('sys_collection_entries_join.sorting')

Actions #2

Updated by Morton Jonuschat over 6 years ago

  • Status changed from New to Accepted
  • Assignee set to Morton Jonuschat
  • Target version set to next-patchlevel
Actions #3

Updated by Gerrit Code Review over 6 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/53132

Actions #4

Updated by Gerrit Code Review over 6 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/53132

Actions #5

Updated by Gerrit Code Review over 6 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53469

Actions #6

Updated by Tymoteusz Motylewski over 6 years ago

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

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF