Skip to content

Commit

Permalink
Fix prefixed_label concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Jan 26, 2016
1 parent 193c529 commit 0fc8726
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/galaxy/tools/parameters/__init__.py
Expand Up @@ -35,20 +35,18 @@ def visit_input_values( inputs, input_values, callback, name_prefix="", label_pr
elif isinstance( input, Conditional ):
values = input_values[ input.name ]
current = values["__current_case__"]
label_prefix = label_prefix
new_name_prefix = name_prefix + input.name + "|"
visit_input_values( input.cases[current].inputs, values, callback, new_name_prefix, label_prefix, no_replacement_value=no_replacement_value, context=context, details=details )
elif isinstance( input, Section ):
values = input_values[ input.name ]
label_prefix = label_prefix
new_name_prefix = name_prefix + input.name + "|"
visit_input_values( input.inputs, values, callback, new_name_prefix, label_prefix, no_replacement_value=no_replacement_value, context=context, details=details )
else:
args = {
'input' : input,
'value' : input_values[input.name],
'prefixed_name' : name_prefix + input.name,
'prefixed_label' : label_prefix + input.label
'value' : input_values[ input.name ],
'prefixed_name' : "%s%s" % ( name_prefix, input.name ),
'prefixed_label' : "%s%s" % ( label_prefix, input.label )
}
if details:
args[ 'context' ] = context
Expand Down

0 comments on commit 0fc8726

Please sign in to comment.