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'')