commit/galaxy-central: natefoo: Fix for library upload when there is no current history.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/1f2870dc3ab0/ changeset: 1f2870dc3ab0 branches: user: natefoo date: 2011-06-02 17:06:08 summary: Fix for library upload when there is no current history. affected #: 1 file (36 bytes) --- a/lib/galaxy/web/controllers/library_common.py Wed Jun 01 16:27:28 2011 -0400 +++ b/lib/galaxy/web/controllers/library_common.py Thu Jun 02 11:06:08 2011 -0400 @@ -905,7 +905,8 @@ dbkeys = get_dbkey_options( last_used_build ) # Send the current history to the form to enable importing datasets from history to library history = trans.get_history() - trans.sa_session.refresh( history ) + if history is not None: + trans.sa_session.refresh( history ) if upload_option == 'upload_file' and trans.app.config.nginx_upload_path: # If we're using nginx upload, override the form action - # url_for is intentionally not used on the base URL here - 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