mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-20 04:51:55 +00:00
set has_unpublished_changes=True when making unpublished page copies
This commit is contained in:
parent
77d5b7d532
commit
907c76d717
1 changed files with 1 additions and 1 deletions
|
|
@ -626,7 +626,7 @@ def copy(request, page_id):
|
|||
|
||||
# Unpublish copied pages if we need to
|
||||
if not publish_copies:
|
||||
new_page.get_descendants(inclusive=True).update(live=False)
|
||||
new_page.get_descendants(inclusive=True).update(live=False, has_unpublished_changes=True)
|
||||
|
||||
# Assign user of this request as the owner of all the new pages
|
||||
new_page.get_descendants(inclusive=True).update(owner=request.user)
|
||||
|
|
|
|||
Loading…
Reference in a new issue