Merge "fix mistral dashbaord workflow execution form bug"

This commit is contained in:
Zuul 2018-08-14 07:38:27 +00:00 committed by Gerrit Code Review
commit ffe113c364

View File

@ -45,15 +45,16 @@ class ExecuteForm(forms.SelfHandlingForm):
for entry in list.split(","):
label, _, default = entry.partition("=")
label = label.strip()
self.workflow_parameters.append(label)
if default == "None":
default = None
required = False
else:
required = True
self.fields[label] = forms.CharField(label=label,
required=required,
initial=default)
if label != '':
self.workflow_parameters.append(label)
if default == "None":
default = None
required = False
else:
required = True
self.fields[label] = forms.CharField(label=label,
required=required,
initial=default)
def handle(self, request, data):
try: