mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Update TaxonomyService.cs (#8223)
This commit is contained in:
committed by
Sébastien Ros
parent
bf1945d3a9
commit
46f76d7140
@@ -115,9 +115,9 @@ namespace Orchard.Taxonomies.Services {
|
||||
|
||||
public void DeleteTaxonomy(TaxonomyPart taxonomy) {
|
||||
_contentManager.Remove(taxonomy.ContentItem);
|
||||
|
||||
List<TermPart> allTerms = GetRootTerms(taxonomy.Id).ToList();
|
||||
// Removing terms
|
||||
foreach (var term in GetRootTerms(taxonomy.Id)) {
|
||||
foreach (var term in allTerms) {
|
||||
DeleteTerm(term);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user