mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #146 from guerler/fix_nested_conditional_defaults
[STABLE] Fix default values for nested conditional test parameters
This commit is contained in:
@@ -2446,7 +2446,8 @@ class Tool( object, Dictifiable ):
|
||||
elif input.type == 'conditional':
|
||||
if 'test_param' in tool_dict:
|
||||
test_param = tool_dict['test_param']
|
||||
test_param['value'] = jsonify(group_state.get(test_param['name'], None))
|
||||
test_param['default_value'] = jsonify(input.test_param.get_initial_value(trans, other_values))
|
||||
test_param['value'] = jsonify(group_state.get(test_param['name'], test_param['default_value']))
|
||||
for i in range (len ( tool_dict['cases'] ) ):
|
||||
current_state = {}
|
||||
if i == group_state.get('__current_case__', None):
|
||||
|
||||
Reference in New Issue
Block a user