Skip to content

Commit c2eea5d

Browse files
committed
Populate IncludeDescendants on ContentPublishedNotification when publishing branch (forward port of #20578).
1 parent 21bf23b commit c2eea5d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Umbraco.Core/Notifications/ContentPublishedNotification.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public ContentPublishedNotification(IEnumerable<IContent> target, EventMessages
2424

2525
public ContentPublishedNotification(IEnumerable<IContent> target, EventMessages messages, bool includeDescendants)
2626
: base(target, messages) => IncludeDescendants = includeDescendants;
27+
2728
/// <summary>
2829
/// Gets a enumeration of <see cref="IContent"/> which are being published.
2930
/// </summary>

src/Umbraco.Core/Services/ContentService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2207,7 +2207,7 @@ internal IEnumerable<PublishResult> PublishBranch(
22072207
variesByCulture ? culturesPublished.IsCollectionEmpty() ? null : culturesPublished : ["*"],
22082208
null,
22092209
eventMessages));
2210-
scope.Notifications.Publish(new ContentPublishedNotification(publishedDocuments, eventMessages).WithState(notificationState));
2210+
scope.Notifications.Publish(new ContentPublishedNotification(publishedDocuments, eventMessages, true).WithState(notificationState));
22112211

22122212
scope.Complete();
22132213
}

0 commit comments

Comments
 (0)