#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
This commit is contained in:
JLedel
2012-03-11 20:34:28 +01:00
parent 2f08141e7a
commit c3fdc9cf74

View File

@@ -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