workflows: exclude prefill & display option from workflow option fields (#13621)

This commit is contained in:
Frédéric Péters 2021-11-02 09:35:15 +01:00
parent b104b43dee
commit b6623678cb
1 changed files with 1 additions and 5 deletions

View File

@ -937,7 +937,7 @@ class WorkflowVariableWidget(CompositeWidget):
class WorkflowVariablesFieldDefPage(FieldDefPage):
section = 'workflows'
blacklisted_attributes = ['condition']
blacklisted_attributes = ['condition', 'prefill', 'display_locations']
def form(self):
form = super().form()
@ -951,10 +951,6 @@ class WorkflowVariablesFieldDefPage(FieldDefPage):
required=True,
workflow=self.objectdef.workflow,
)
display_locations = form.get_widget('display_locations')
if display_locations:
# remove validation page from choices
display_locations.options = display_locations.options[1:]
return form