From c3fdc9cf74e5be1b4eeeb5a1e1b01bfb8eb7f58f Mon Sep 17 00:00:00 2001 From: JLedel Date: Sun, 11 Mar 2012 20:34:28 +0100 Subject: [PATCH] #18536: Tag rename now case sensitive --HG-- branch : 1.x extra : transplant_source : %D0%1D%DA%D9k_7%A7%CD6%F7%BA%DE%E8%C5%09%08%3C%7B%FF --- src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs b/src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs index ccd16d317..2f27e5b1b 100644 --- a/src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs +++ b/src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs @@ -91,11 +91,7 @@ namespace Orchard.Tags.Services { var tagRecord = GetTagByName(tagName); // new tag name already existing => merge - if (tagRecord != null) { - // If updating ourselves, ignore - if (tagRecord.Id == tagId) - return; - + if (tagRecord != null && tagRecord.Id != tagId) { var tagsContentItems = _contentTagRepository.Fetch(x => x.TagRecord.Id == tagId); // get contentItems already tagged with the existing one