Protect against missing canonical in conversationCanonicalAdapterFactory.
svn path=/plone.app.discussion/trunk/; revision=37410
This commit is contained in:
@@ -373,7 +373,9 @@ else:
|
||||
so that comments will be shared across all translations.
|
||||
"""
|
||||
if ITranslatable.providedBy(content):
|
||||
content = content.getCanonical()
|
||||
canonical = content.getCanonical()
|
||||
if canonical is not None:
|
||||
return conversationAdapterFactory(canonical)
|
||||
return conversationAdapterFactory(content)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user