Issue Bug Closed

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

Pixelant Developer 01/06/17, 09:50 updated 01/06/17, 14:00

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));

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.