Commit ed216f78 authored by Josef Glatz's avatar Josef Glatz Committed by Susanne Moog
Browse files

[BUGFIX] Sort upgrade documentation by filename

Restore sorting of documentation files based on their filename
like it was available up to TYPO3 version 8.7.

Resolves: #87390
Releases: master, 9.5
Change-Id: I2ab75d6b750b3a3003f00ed174c0d3dfb865bec9
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63913


Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Susanne Moog's avatarSusanne Moog <look@susi.dev>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Susanne Moog's avatarSusanne Moog <look@susi.dev>
parent 295873fc
......@@ -1247,7 +1247,6 @@ class UpgradeController extends AbstractController
$documentationFiles = $documentationFileService->findDocumentationFiles(
str_replace('\\', '/', realpath(ExtensionManagementUtility::extPath('core') . 'Documentation/Changelog/' . $version))
);
$documentationFiles = array_reverse($documentationFiles);
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('sys_registry');
$filesMarkedAsRead = $queryBuilder
......
......@@ -341,6 +341,7 @@ class DocumentationFile
$finder = new Finder();
$finder
->depth(0)
->sortByName()
->name('/^(Feature|Breaking|Deprecation|Important)\-\d+.+\.rst$/i');
return $finder;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment