From 09acda12fe9a56aa331a4d03d5850e5d8bd1bb26 Mon Sep 17 00:00:00 2001 From: Marc van de Wert Date: Fri, 4 Dec 2020 16:00:29 +0100 Subject: [PATCH] Skip validation when saving an IContent item. This significantly speeds up saving a lot of items and skips any validation issues that cannot be handled from the admin interface. --- src/Controllers/GetaTagsAdminController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers/GetaTagsAdminController.cs b/src/Controllers/GetaTagsAdminController.cs index b74b4f6..0399e74 100644 --- a/src/Controllers/GetaTagsAdminController.cs +++ b/src/Controllers/GetaTagsAdminController.cs @@ -151,7 +151,7 @@ public void EditTagsInContentRepository(Tag tagFromTagRepository, Tag tagFromUse tagAttribute.SetValue(clone, tagsCommaSeperated); } - _contentRepository.Save((IContent)clone, SaveAction.Publish, AccessLevel.NoAccess); + _contentRepository.Save((IContent)clone, SaveAction.Publish | SaveAction.SkipValidation, AccessLevel.NoAccess); } _tagRepository.Delete(tagFromTagRepository); }