[BUGFIX] Select suitable distribution version in em 49/53249/6
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 09:54:00 +0000 (11:54 +0200)
commitb4af653c738b5a92fac549f411b5807bf0562f2d
tree5631988f3c3fe7e935871ffade5b160ce354d12e
parent1d98daf126ea494389b95d3b2e761f51cc1bb03c
[BUGFIX] Select suitable distribution version in em

The distribution installer selects current_version=1
extensons 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/53249
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
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