1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/bcedc1c97e34/ Changeset: bcedc1c97e34 User: guerler Date: 2015-01-29 17:55:02+00:00 Summary: ToolForm: Replace default value after validation Affected #: 1 file diff -r c424fac760796619ded60968ad57c8e9f51e9ca7 -r bcedc1c97e346fff6b3458b5339cac35ef37ffd0 lib/galaxy/tools/__init__.py --- a/lib/galaxy/tools/__init__.py +++ b/lib/galaxy/tools/__init__.py @@ -2405,9 +2405,7 @@ pass group_state[input.test_param.name] = value else: - default_value = incoming.get(key, None) - if not default_value: - default_value = state[input.name] + default_value = incoming.get(key, state.get(input.name, None)) value, error = check_state(trans, input, default_value, context) if error: errors[key] = error @@ -2458,7 +2456,11 @@ # sanitize values sanitize(tool_dict, 'value') sanitize(tool_dict, 'default_value') - + + # use default value + if not tool_dict['value']: + tool_dict['value'] = tool_dict['default_value'] + # backup final input dictionary group_inputs[input_index] = tool_dict Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.