Skip to content

Commit

Permalink
Respect workflow_building_modes.ENABLED in workflow manager's to_dict.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed May 7, 2018
1 parent a4bf7ac commit 1fa77c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/managers/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def _workflow_to_dict_editor(self, trans, stored):
# Get user annotation.
annotation_str = self.get_item_annotation_str(trans.sa_session, trans.user, step) or ''
config_form = None
if trans.history:
if trans.history or trans.workflow_building_mode == workflow_building_modes.ENABLED:
# If in a web session, attach form html. No reason to do
# so for API requests.
config_form = module.get_config_form()
Expand Down

0 comments on commit 1fa77c3

Please sign in to comment.