mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 09:42:29 +08:00
Remove newly added terms before processing (#8312)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user