Skip to content

Commit

Permalink
Extend export_subtree_bundle: Reset the review state of documents and…
Browse files Browse the repository at this point in the history
… mails
  • Loading branch information
elioschmutz committed Dec 20, 2024
1 parent 0a41b5e commit ed3c769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opengever/maintenance/scripts/export_subtree_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def is_parent_or_child_of(self, context_path, paths):
return False

def serialize_review_state(self, obj):
if obj.portal_type == 'ftw.mail.mail':
if obj.portal_type in ['opengever.document.document', 'ftw.mail.mail']:
# The WF state 'mail-state-active' is not currently allowed per the
# JSON schema for documents.json. And since documents and mails
# have a one-state workflow anyway, any review_state value for them
Expand Down

0 comments on commit ed3c769

Please sign in to comment.