From c7501bd47b716ac1126c7b96e5ce10eeb93eb027 Mon Sep 17 00:00:00 2001 From: Kenn Jacobsen Date: Wed, 10 Aug 2022 08:45:05 +0200 Subject: [PATCH] Fix broken rollback feature (#12808) Co-authored-by: kjac --- src/Umbraco.Web.BackOffice/Controllers/ContentController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs b/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs index 7481b4e1ff..c9bc07457a 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs @@ -3013,9 +3013,9 @@ public class ContentController : ContentControllerBase [Authorize(Policy = AuthorizationPolicies.ContentPermissionRollbackById)] [HttpPost] - public IActionResult PostRollbackContent(int contentId, int versionId, string culture = "*") + public IActionResult PostRollbackContent(int contentId, int versionId, string? culture = null) { - OperationResult rollbackResult = _contentService.Rollback(contentId, versionId, culture, _backofficeSecurityAccessor.BackOfficeSecurity?.GetUserId().Result ?? -1); + OperationResult rollbackResult = _contentService.Rollback(contentId, versionId, culture ?? "*", _backofficeSecurityAccessor.BackOfficeSecurity?.GetUserId().Result ?? -1); if (rollbackResult.Success) {