Change state to publishing before handling ContentSavingNotification (#14114)

This commit is contained in:
Elitsa Marinovska
2023-04-25 15:08:15 +02:00
committed by Nikolaj
parent 3b104bf256
commit c33ec7ca55

View File

@@ -1146,6 +1146,8 @@ public class ContentService : RepositoryService, IContentService
var allLangs = _languageRepository.GetMany().ToList();
// Change state to publishing
content.PublishedState = PublishedState.Publishing;
var savingNotification = new ContentSavingNotification(content, evtMsgs);
if (scope.Notifications.PublishCancelable(savingNotification))
{