commit/galaxy-central: dannon: workflows: Fix for rename not updating latest_workflow in addition to the stored workflow. This fixes the error where workflow exports always had the *original* workflow name, regardless of renames.

1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/70acce0591a9/ changeset: 70acce0591a9 user: dannon date: 2011-08-03 08:02:54 summary: workflows: Fix for rename not updating latest_workflow in addition to the stored workflow. This fixes the error where workflow exports always had the *original* workflow name, regardless of renames. affected #: 1 file (95 bytes) --- a/lib/galaxy/web/controllers/workflow.py Wed Aug 03 00:34:27 2011 -0400 +++ b/lib/galaxy/web/controllers/workflow.py Wed Aug 03 02:02:54 2011 -0400 @@ -380,7 +380,9 @@ def rename( self, trans, id, new_name=None, **kwargs ): stored = self.get_stored_workflow( trans, id ) if new_name is not None: - stored.name = sanitize_html( new_name ) + san_new_name = sanitize_html( new_name ) + stored.name = san_new_name + stored.latest_workflow.name = san_new_name trans.sa_session.flush() # For current workflows grid: trans.set_message ( "Workflow renamed to '%s'." % new_name ) 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.
participants (1)
-
Bitbucket