Do not show build information on Upgrade page

This commit is contained in:
Bjarke Berg
2021-08-10 19:31:27 +02:00
parent 456e352491
commit cfc9450940

View File

@@ -4,7 +4,7 @@ using Umbraco.Cms.Core.Configuration;
using Umbraco.Cms.Core.Install.Models;
using Umbraco.Cms.Core.Semver;
using Umbraco.Cms.Core.Services;
using Umbraco.Extensions;
namespace Umbraco.Cms.Core.Install.InstallSteps
{
/// <summary>
@@ -39,7 +39,7 @@ namespace Umbraco.Cms.Core.Install.InstallSteps
var currentState = FormatGuidState(_runtimeState.CurrentMigrationState);
var newState = FormatGuidState(_runtimeState.FinalMigrationState);
var newVersion = _umbracoVersion.SemanticVersion.ToString();
var newVersion = _umbracoVersion.SemanticVersion.ToSemanticStringWithoutBuild();
var oldVersion = new SemVersion(_umbracoVersion.SemanticVersion.Major, 0, 0).ToString(); //TODO can we find the old version somehow? e.g. from current state
var reportUrl = $"https://our.umbraco.com/contribute/releases/compare?from={oldVersion}&to={newVersion}&notes=1";