From 97e8dc495a4befdf35bd1c2915b24fc8864c2148 Mon Sep 17 00:00:00 2001 From: Jeremy Goecks Date: Thu, 30 May 2013 17:38:57 -0400 Subject: [PATCH] During workflow export, update workflow modules before visiting inputs to avoid errors resulting from parameter changes. --- lib/galaxy/webapps/galaxy/controllers/workflow.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/galaxy/webapps/galaxy/controllers/workflow.py b/lib/galaxy/webapps/galaxy/controllers/workflow.py index aa20d451b51..c3a83219dca 100644 --- a/lib/galaxy/webapps/galaxy/controllers/workflow.py +++ b/lib/galaxy/webapps/galaxy/controllers/workflow.py @@ -1756,6 +1756,9 @@ class WorkflowController( BaseUIController, SharableMixin, UsesStoredWorkflowMix def callback( input, value, prefixed_name, prefixed_label ): if isinstance( input, DataToolParameter ): data_input_names[ prefixed_name ] = True + + # FIXME: this updates modules silently right now; messages from updates should be provided. + module.check_and_update_state() visit_input_values( module.tool.inputs, module.state.inputs, callback ) # Filter # FIXME: this removes connection without displaying a message currently!