mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
a7f086317d6ad224c32aabe7ddfe005f21a41aa0

I think the problem is that the TermsPartHandler triggers the TermCountProcessor as a Task async and the TermCountProcessor used the ContentTypeId as a parameter. If a ContentItem gets deleted, the TermCountProcessor cannot access it anymore and the Terms won't getting reprocessed which results in a wrong count. I altered the ITermCountProcessor interface to accept TermPartRecordId's instead of the ContentTypeId and use this id's directly. I also had to add a call for the ITermCountProcessor in the TermService UpdateTerm method. This is because when you re-publish a ContentItem only the new Terms are available in the PublishedEvent - but also terms from the previous version needed to be processed.
Description
About
Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
orchardproject.net
Languages
C#
43.9%
JavaScript
43.7%
HTML
5.5%
CSS
2.4%
Less
1.5%
Other
2.9%