collective / Products.PloneKeywordManager

Change, merge and delete keywords (AKA tags or subjects) in Plone.
https://pypi.org/project/Products.PloneKeywordManager/
4 stars 8 forks source link

Issues with acquired keywords on Comment objects #35

Closed alecpm closed 3 years ago

alecpm commented 3 years ago

PKM has some special handling for IComment objects which effectively delegates the mutator lookup to the parent content object. Unfortunately, that code assumes that the parent object is Archetypes content (i.e. getField is available via acquisition), so it ends up ignoring Comments on Dexterity content.

The result is that Comments that were indexed with acquired Keywords will not be re-indexed when the Keyword is updated/removed. I plan to submit a PR to fix this shortly.