Update TermsPartHandler.cs

This commit is contained in:
mvarblow
2015-09-14 17:03:30 -04:00
parent 8690278bed
commit d958df3041

View File

@@ -92,8 +92,9 @@ namespace Orchard.Taxonomies.Handlers {
// Fires off a processing engine task to run the count processing after the request so it's non-blocking.
private void RecalculateCount(IProcessingEngine processingEngine, ShellSettings shellSettings, IShellDescriptorManager shellDescriptorManager, TermsPart part) {
var termPartRecordIds = part.Terms.Select(t => t.TermRecord.Id).ToArray();
if (termPartRecordIds.Length > 0) {
processingEngine.AddTask(shellSettings, shellDescriptorManager.GetShellDescriptor(), "ITermCountProcessor.Process", new Dictionary<string, object> { { "termPartRecordIds", termPartRecordIds } });
}
}
protected override void Activating(ActivatingContentContext context) {