For migrations of comments without a valid old_status, apply the 'published'
state.
This commit is contained in:
parent
d2ccec6efe
commit
882236cb15
@ -4,6 +4,10 @@ Changelog
|
|||||||
2.2.1 (unreleased)
|
2.2.1 (unreleased)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
- For migrations of comments without a valid old_status, apply the 'published'
|
||||||
|
state.
|
||||||
|
[thet]
|
||||||
|
|
||||||
- Re-apply eleddy's "Revert modification date since this is fixed in
|
- Re-apply eleddy's "Revert modification date since this is fixed in
|
||||||
p.a.caching now." as her commit was lost later on due to some git magic.
|
p.a.caching now." as her commit was lost later on due to some git magic.
|
||||||
[thet]
|
[thet]
|
||||||
|
@ -121,9 +121,10 @@ class View(BrowserView):
|
|||||||
'action': None,
|
'action': None,
|
||||||
'actor': None,
|
'actor': None,
|
||||||
'comment': 'Migrated workflow state',
|
'comment': 'Migrated workflow state',
|
||||||
'review_state': old_status.get(
|
'review_state': old_status and old_status.get(
|
||||||
'review_state',
|
'review_state',
|
||||||
new_workflow.initial_state),
|
new_workflow.initial_state)
|
||||||
|
or 'published',
|
||||||
'time': DateTime()
|
'time': DateTime()
|
||||||
}
|
}
|
||||||
workflow.setStatusOf('comment_review_workflow',
|
workflow.setStatusOf('comment_review_workflow',
|
||||||
|
Loading…
Reference in New Issue
Block a user