Merge pull request #146 from guerler/fix_nested_conditional_defaults

[STABLE] Fix default values for nested conditional test parameters
This commit is contained in:
Dannon Baker
2015-04-25 10:40:50 -04:00
+2 -1
View File
@@ -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):