Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions BrainPortal/app/models/boutiques_portal_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,12 @@ def after_form

# Required parameters
descriptor.required_inputs.each do |input|
# skip if the input is the sole mandatory file and if
# skip if the input is the sole mandatory file,
# the task is qualified to launch multiple tasks
# only if no params was provide
# and there is more than one file is selected in UI
next if descriptor.qualified_to_launch_multiple_tasks? &&
descriptor.sole_mandatory_file_input == input &&
self.params[:interface_userfile_ids].length > 1
!invoke_params[input.id].present?

sanitize_param(input)
Expand Down