Fix default values for nested conditional test parameters

This commit is contained in:
guerler
2015-04-22 12:21:24 -04:00
parent 305d51a84a
commit 3f1cec451f
+2 -1
View File
@@ -2444,7 +2444,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):