Skip to content

Commit

Permalink
Merge pull request #12 from hakksor/master
Browse files Browse the repository at this point in the history
Fixed an issue where tags wouldn't get cleared when removed from content
  • Loading branch information
marisks authored Dec 19, 2022
2 parents ff05784 + 1149142 commit 3d52d22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Geta.Optimizely.Tags/Core/TagService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Geta Digital. All rights reserved.
// Copyright (c) Geta Digital. All rights reserved.
// Licensed under Apache-2.0. See the LICENSE file in the project root for more information

using System;
Expand Down Expand Up @@ -161,7 +161,7 @@ private void RemoveOldContentTags(IContent content)

foreach (var tag in oldTags)
{
if (tag.PermanentLinks == null || !tag.PermanentLinks.Contains(contentGuid) || tag.GroupKey != language)
if (tag.PermanentLinks == null || !tag.PermanentLinks.Contains(contentGuid) || !tag.GroupKey.EndsWith(language))
{
continue;
}
Expand Down

0 comments on commit 3d52d22

Please sign in to comment.