[BUGFIX] Select suitable distribution version in em 62/53262/4
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 18 Jun 2017 11:48:56 +0000 (13:48 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 20 Jun 2017 10:47:36 +0000 (12:47 +0200)
commitb8f85952cb7555744fd65ed5fd50cf68ff555de9
treefc0627af3267924bed5db96ba35deb1404e2d659
parentc8b3703ee405b857a0b5b8fac8a067149e1e70d9
[BUGFIX] Select suitable distribution version in em

The distribution installer selects current_version=1
extensions only and fails in core v7 since the current
introduction version is not compatible with v7 anymore.

The patch changes version selection a bit to first find
all distribution extensions, then filters those suitable
for given core version, then filters latest version of
the distribution extension.

Installing introduction package in 7.6 works again.

Change-Id: I11f2def2ea606ada5f7c3efd3043f59bd4be0452
Resolves: #81068
Releases: master, 8.7, 7.6
Reviewed-on: https://review.typo3.org/53262
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/extensionmanager/Classes/Controller/ListController.php
typo3/sysext/extensionmanager/Classes/Domain/Repository/ExtensionRepository.php
typo3/sysext/extensionmanager/Classes/Utility/DependencyUtility.php
typo3/sysext/extensionmanager/Tests/Unit/Utility/DependencyUtilityTest.php