misc: don't check displayed fields twice in live evaluations (#35363)

This commit is contained in:
Frédéric Péters 2019-08-12 11:10:24 +02:00
parent 8283f02eab
commit e5990b82fb
1 changed files with 1 additions and 0 deletions

View File

@ -673,6 +673,7 @@ class FormStatusPage(Directory, FormTemplateMixin):
get_publisher().substitutions.unfeed(lambda x: x is self.filled)
get_publisher().substitutions.feed(self.filled)
# reevaluate workflow form according to possible new content
displayed_fields = []
form = self.filled.get_workflow_form(user, displayed_fields=displayed_fields)
return self.live_process_fields(form, self.filled, displayed_fields)