From 7da6263136e359ad3cc42ccd617e03f2051a45b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 12 Jul 2018 10:13:22 +0200 Subject: [PATCH] only run incoming_mail_attributed for incoming mails --- src/pfwbged/collection/multiactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pfwbged/collection/multiactions.py b/src/pfwbged/collection/multiactions.py index db76d70..5057f96 100644 --- a/src/pfwbged/collection/multiactions.py +++ b/src/pfwbged/collection/multiactions.py @@ -11,7 +11,7 @@ class MultiActionsView(BrowserView): document = api.content.get(document_id) api.content.transition(document, action) document.reindexObject(idxs=['review_state']) - if action == 'to_process': + if action == 'to_process' and document.portal_type == 'dmsincomingmail': from pfwbged.policy.subscribers.mail import incoming_mail_attributed incoming_mail_attributed(document, u'')