From 8ea9a38829f8ea0eb13f540396f952df71578319 Mon Sep 17 00:00:00 2001 From: Renaud Paquay Date: Fri, 7 Jan 2011 21:55:03 -0800 Subject: [PATCH] Fix tag save issue Work Item: 17075 --HG-- branch : 1.x --- src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs b/src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs index b78a1e1b8..0b025de03 100644 --- a/src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs +++ b/src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs @@ -86,6 +86,10 @@ namespace Orchard.Tags.Services { // new tag name already existing => merge if (tagRecord != null) { + // If updating ourselves, ignore + if (tagRecord.Id == tagId) + return; + var tagsContentItems = _contentTagRepository.Fetch(x => x.TagRecord.Id == tagId); // get contentItems already tagged with the existing one