From 17daafc80550114e4f0c93f1536c0e39347471c5 Mon Sep 17 00:00:00 2001 From: Andreas Jung Date: Mon, 27 Feb 2023 14:55:30 +0100 Subject: [PATCH] Always import discussions independent if discussion support is enabled or not on a particular content object (#182) --- CHANGES.rst | 4 ++++ src/collective/exportimport/import_other.py | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 4dcc0b1a..45096514 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -31,6 +31,10 @@ Changelog - Add example for importing collective.jsonify data to documentation. [pbauer] +- Always import discussions independent if discussion support is enabled or not + on a particular content object (#182) + [ajung] + 1.7 (2023-01-20) ---------------- diff --git a/src/collective/exportimport/import_other.py b/src/collective/exportimport/import_other.py index 024e8176..b55496ca 100644 --- a/src/collective/exportimport/import_other.py +++ b/src/collective/exportimport/import_other.py @@ -601,8 +601,6 @@ def import_data(self, data): obj = api.content.get(UID=conversation_data["uuid"]) if not obj: continue - if not obj.restrictedTraverse("@@conversation_view").enabled(): - continue added = 0 conversation = IConversation(obj)