Compare commits

..

2 Commits

Author SHA1 Message Date
Emmanuel Cazenave c799344bf8 backoffice: display drafts stats (#72542)
gitea/wcs/pipeline/head There was a failure building this commit Details
2024-02-09 12:29:08 +01:00
Emmanuel Cazenave 5d21b253a9 misc: store page id on drafts (#85091)
gitea/wcs/pipeline/head This commit looks good Details
2024-02-09 11:53:00 +01:00
1 changed files with 4 additions and 0 deletions

View File

@ -1604,6 +1604,10 @@ class FormPage(Directory, TempfileDirectoryMixin, FormTemplateMixin):
# form without pages
return '_first_page'
return self.pages[page_no].id
# After subtmitting the last standard page,
# page_no is out of range regarding pages.
# If the form has a confirmation page a draft for that page is stored.
# If not that draft will be immediately converted to a standard formdata.
if self.has_confirmation_page():
return '_confirmation_page'
return None