Skip to content

Commit de6e0dc

Browse files
committed
Merge branch '7.0.2' into 7.1.0
2 parents ead837f + 10a4eb3 commit de6e0dc

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Umbraco.Core/Models/ContentExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ public static void RemoveTags(this IContentBase content, string propertyTypeAlia
618618
/// <returns>Xml representation of the passed in <see cref="IContent"/></returns>
619619
internal static XElement ToDeepXml(this IContent content)
620620
{
621-
return ApplicationContext.Current.Services.PackagingService.Export(content, true);
621+
return ApplicationContext.Current.Services.PackagingService.Export(content, true, raiseEvents: false);
622622
}
623623

624624
/// <summary>
@@ -628,7 +628,7 @@ internal static XElement ToDeepXml(this IContent content)
628628
/// <returns>Xml representation of the passed in <see cref="IContent"/></returns>
629629
public static XElement ToXml(this IContent content)
630630
{
631-
return ApplicationContext.Current.Services.PackagingService.Export(content);
631+
return ApplicationContext.Current.Services.PackagingService.Export(content, raiseEvents: false);
632632
}
633633

634634
/// <summary>
@@ -638,7 +638,7 @@ public static XElement ToXml(this IContent content)
638638
/// <returns>Xml representation of the passed in <see cref="IContent"/></returns>
639639
public static XElement ToXml(this IMedia media)
640640
{
641-
return ApplicationContext.Current.Services.PackagingService.Export(media);
641+
return ApplicationContext.Current.Services.PackagingService.Export(media, raiseEvents: false);
642642
}
643643

644644
/// <summary>
@@ -648,7 +648,7 @@ public static XElement ToXml(this IMedia media)
648648
/// <returns>Xml representation of the passed in <see cref="IMedia"/></returns>
649649
internal static XElement ToDeepXml(this IMedia media)
650650
{
651-
return ApplicationContext.Current.Services.PackagingService.Export(media, true);
651+
return ApplicationContext.Current.Services.PackagingService.Export(media, true, raiseEvents: false);
652652
}
653653

654654
/// <summary>

src/Umbraco.Core/Services/PackagingService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,6 @@ internal XElement Export(IMember member)
13451345

13461346
xml.Add(new XAttribute("loginName", member.Username));
13471347
xml.Add(new XAttribute("email", member.Email));
1348-
xml.Add(new XAttribute("key", member.Key));
13491348

13501349
return xml;
13511350
}

0 commit comments

Comments
 (0)