Project

General

Profile

Actions

Bug #79180

closed

Special menus of "Recently updated pages" doesn't work

Added by Pixelant Developer almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-01-06
Due date:
% Done:

0%

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

Description

"Recently updated pages" in special menus content elements cause an SQL error.

Unknown column 'SYS_LASTCHANGED DESC' in 'order clause'

Error appear on line 723 in "typo3/sysext/frontend/Classes/Page/PageRepository.php" when it try to set order

$res->orderBy($sortField);

and $sortField is "SYS_LASTCHANGED DESC".

Suggest fix

$res->orderBy(...GeneralUtility::trimExplode(' ', $sortField, true));
Actions

Also available in: Atom PDF