Fix for library upload when there is no current history.

This commit is contained in:
Nate Coraor
2011-06-02 11:06:08 -04:00
parent b91ca79851
commit 91a484c259
+2 -1
View File
@@ -905,7 +905,8 @@ class LibraryCommon( BaseController, UsesFormDefinitions ):
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 -