From f6152fbfdcd1011bb804d93f4c70f16b16762992 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Thu, 23 Feb 2012 15:09:10 -0800 Subject: [PATCH] Fixing Tags import --HG-- branch : 1.x --- src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs b/src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs index 81a905a98..ccd16d317 100644 --- a/src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs +++ b/src/Orchard.Web/Modules/Orchard.Tags/Services/TagService.cs @@ -177,9 +177,6 @@ namespace Orchard.Tags.Services { } public void UpdateTagsForContentItem(ContentItem contentItem, IEnumerable tagNamesForContentItem) { - if (contentItem.Id == 0) - throw new OrchardException(T("Error adding tag to content item: the content item has not been created yet.")); - var tags = tagNamesForContentItem.Select(CreateTag); var newTagsForContentItem = new List(tags); var currentTagsForContentItem = contentItem.As().Record.Tags;