U4-11454 - Cancelling an unpublish event does not display message

Created by Rachel 18 Jun 2018, 13:18:24 Updated by Dave Woestenborghs 18 Jun 2018, 13:47:06

Duplicates: U4-7757

If you cancel an unpublish event, in the content edit page the error message displaying the reason that the unpublish was cancelled is not displayed. Eg would expect the following code:

protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) { ContentService.UnPublishing += ContentUnpublishing; }

private void ContentUnpublishing(IPublishingStrategy sender, PublishEventArgs e) { e.Cancel = true; e.Messages.Add(new EventMessage("My Title","Can not unpublish Item", EventMessageType.Error)); }

To display a message "Can not unpublish Item" it does not. However the unpublish is prevented.


Dave Woestenborghs 18 Jun 2018, 13:46:17


This is a duplicate of http://issues.umbraco.org/issue/U4-7757

And that has been fixed in 7.11 which will be released next week if i'm correct

Priority: Normal

Type: Bug

State: Duplicate


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.8.1

Due in version:


Story Points: