Skip to content

Commit

Permalink
[BUGFIX] Add missing column in database query
Browse files Browse the repository at this point in the history
To avoid exceptions on certain database systems the pid must be selected
as well as it is used in the order statement.

Resolves: #84303
Releases: master, 8.7
Change-Id: I1f41925d9c22c20a2fa3f080b85bb4d17d03a778
Reviewed-on: https://review.typo3.org/56571
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Simon Gilli <typo3@gilbertsoft.org>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
  • Loading branch information
georgringer authored and IchHabRecht committed Apr 14, 2018
1 parent ff67e51 commit a3828a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function brPoint(lnumber,t) {
->from('pages')
->from('sys_template')
->where($queryBuilder->expr()->eq('pages.uid', $queryBuilder->quoteIdentifier('sys_template.pid')))
->groupBy('pages.uid')
->groupBy('pages.uid', 'pages.pid', 'pages.sorting')
->orderBy('pages.pid')
->addOrderBy('pages.sorting')
->execute();
Expand Down

0 comments on commit a3828a4

Please sign in to comment.