workflows: exclude prefill & display option from workflow option fields (#13621)
This commit is contained in:
parent
b104b43dee
commit
b6623678cb
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue