[BUGFIX] Add sorting to group by for SQL compatibility 76/53676/2
authorSusanne Moog <susanne.moog@typo3.com>
Fri, 11 Aug 2017 08:16:01 +0000 (10:16 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Fri, 11 Aug 2017 09:31:24 +0000 (11:31 +0200)
commit6546955f1fa65b547f7e1c5c5a0059165b62a7c8
tree0696589a85f5f559d436b74397e92bb03bb1638f
parent91ec692af22f0b1fce2d7c1cf726cd41cf7dc7cb
[BUGFIX] Add sorting to group by for SQL compatibility

Page module, view module and edit document selected data
with an incomplete group by statement, missing the sorting
column. This resulted in an error on mssql servers.

The sorting field was added to the relevant queries.

Change-Id: If1fb314542e0f27cdf18989fa2b8427c1e31e2d3
Resolves: #79298
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/53676
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/backend/Classes/Controller/PageLayoutController.php
typo3/sysext/viewpage/Classes/Controller/ViewModuleController.php