Fix tag save issue

Work Item: 17075

--HG--
branch : 1.x
This commit is contained in:
Renaud Paquay
2011-01-07 21:55:03 -08:00
parent 27f7921356
commit 8ea9a38829

View File

@@ -86,6 +86,10 @@ namespace Orchard.Tags.Services {
// new tag name already existing => merge // new tag name already existing => merge
if (tagRecord != null) { if (tagRecord != null) {
// 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