Remove newly added terms before processing (#8312)

This commit is contained in:
Lawyerson
2020-01-23 21:29:48 +01:00
committed by Sébastien Ros
parent fc9a08fd12
commit 92773eb8bf

View File

@@ -281,7 +281,7 @@ namespace Orchard.Taxonomies.Services {
// adding new terms list
foreach (var term in terms) {
// Remove the newly added terms because they will get processed by the Published-Event
termList.RemoveAll(t => t.Term.Id == term.Id);
termList.RemoveAll(t => t.Term.TermRecord.Id == term.Id);
termsPart.Terms.Add(
new TermContentItem {
TermsPartRecord = termsPart.Record,