mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#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:
@@ -91,11 +91,7 @@ namespace Orchard.Tags.Services {
|
|||||||
var tagRecord = GetTagByName(tagName);
|
var tagRecord = GetTagByName(tagName);
|
||||||
|
|
||||||
// new tag name already existing => merge
|
// new tag name already existing => merge
|
||||||
if (tagRecord != null) {
|
if (tagRecord != null && tagRecord.Id != tagId) {
|
||||||
// If updating ourselves, ignore
|
|
||||||
if (tagRecord.Id == tagId)
|
|
||||||
return;
|
|
||||||
|
|
||||||
var tagsContentItems = _contentTagRepository.Fetch(x => x.TagRecord.Id == tagId);
|
var tagsContentItems = _contentTagRepository.Fetch(x => x.TagRecord.Id == tagId);
|
||||||
|
|
||||||
// get contentItems already tagged with the existing one
|
// get contentItems already tagged with the existing one
|
||||||
|
Reference in New Issue
Block a user