Commit 007b8892 authored by Andreas Fernandez's avatar Andreas Fernandez
Browse files

[BUGFIX] Render "Update now" button for every community release

The Core Updater available in the Install Tool now offers the
"Update now" button on every community-driven update.
Previously, the button was set only in case an ELTS release is available,
rendering the Core Updater broken until then.

Resolves: #95006
Related: #94745
Releases: master, 10.4, 9.5
Change-Id: I7008e9ee98b07b7e10198890afa51554cd919fd3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70776


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent ff1cb5d6
......@@ -302,6 +302,10 @@ class UpgradeController extends AbstractController
$availableReleases = [];
if ($this->coreVersionService->isPatchReleaseSuitableForUpdate($latestRelease)) {
$availableReleases[] = $latestRelease;
if (!$latestRelease->isElts()) {
$action = ['title' => 'Update now to version ' . $latestRelease->getVersion(), 'action' => 'updateRegular'];
}
}
if (!$versionMaintenanceWindow->isSupportedByCommunity()) {
if ($latestRelease->isElts()) {
......
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