Skip to content

Commit

Permalink
Fix: Language cleanse fails on report of language
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Jun 4, 2021
1 parent 4fd5605 commit 4895871
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion uSync8.Core/Serialization/Serializers/LanguageSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ protected override void DeleteItem(ILanguage item)

protected override XElement CleanseNode(XElement node)
{
node.Attribute("Key").Value = "";
if (node?.Attribute("Key") != null)
node.Attribute("Key").Value = "";
return node;
}

Expand Down
2 changes: 1 addition & 1 deletion uSync8.Site/config/uSync8.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Folder AllowUnsafe="True">~/uSync/v8/</Folder>
<!-- <Folder AllowUnsafe="False">C:\Test\uSync</Folder> -->
<FlatFolders>True</FlatFolders>
<ImportAtStartup Group="Settings">True</ImportAtStartup>
<ImportAtStartup Group="Settings">False</ImportAtStartup>
<ExportAtStartup>False</ExportAtStartup>
<ExportOnSave>True</ExportOnSave>
<UseGuidFilenames>True</UseGuidFilenames>
Expand Down

0 comments on commit 4895871

Please sign in to comment.