Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alain Shakour
clowdflows
Commits
ed4dd98d
Commit
ed4dd98d
authored
Jan 27, 2015
by
Janez K
Browse files
fix problem with multiple inputs and required
parent
19e010b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
workflows/views.py
View file @
ed4dd98d
...
...
@@ -999,7 +999,7 @@ def run_widget(request):
if
(
w
.
workflow
.
user
==
request
.
user
):
try
:
# find all required inputs
for
inp
in
w
.
inputs
.
filter
(
required
=
True
,
parameter
=
False
):
for
inp
in
w
.
inputs
.
filter
(
required
=
True
,
parameter
=
False
,
multi
=
False
):
if
inp
.
connections
.
count
()
==
0
:
raise
Exception
(
"The input "
+
str
(
inp
)
+
" must have something connected to it in order to run."
)
if
w
.
type
==
'for_input'
or
w
.
type
==
'for_output'
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment