Skip to content

Commit 201906f

Browse files
committed
Populate IncludeDescendants on ContentPublishedNotification when publishing branch (forward port of #20578).
1 parent a4c0da3 commit 201906f

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
@@ -2214,7 +2214,7 @@ internal IEnumerable<PublishResult> PublishBranch(
22142214
variesByCulture ? culturesPublished.IsCollectionEmpty() ? null : culturesPublished : ["*"],
22152215
null,
22162216
eventMessages));
2217-
scope.Notifications.Publish(new ContentPublishedNotification(publishedDocuments, eventMessages).WithState(notificationState));
2217+
scope.Notifications.Publish(new ContentPublishedNotification(publishedDocuments, eventMessages, true).WithState(notificationState));
22182218

22192219
scope.Complete();
22202220
}

0 commit comments

Comments
 (0)