details: http://www.bx.psu.edu/hg/galaxy/rev/d99cee3a4efd changeset: 2628:d99cee3a4efd user: Greg Von Kuster <greg@bx.psu.edu> date: Wed Aug 26 07:12:04 2009 -0400 description: Fix for importing a shared history via a link for an anonymous user with no existing Galaxy cookies. 1 file(s) affected in this change: lib/galaxy/web/controllers/history.py diffs (12 lines): diff -r 03accd13066e -r d99cee3a4efd lib/galaxy/web/controllers/history.py --- a/lib/galaxy/web/controllers/history.py Tue Aug 25 16:59:28 2009 -0400 +++ b/lib/galaxy/web/controllers/history.py Wed Aug 26 07:12:04 2009 -0400 @@ -322,7 +322,7 @@ return trans.show_ok_message( """ History "%s" has been imported. Click <a href="%s">here</a> to begin.""" % ( new_history.name, web.url_for( '/' ) ) ) - elif not user_history.datasets or confirm: + elif not user_history or not user_history.datasets or confirm: new_history = import_history.copy() new_history.name = "imported: " + new_history.name new_history.user_id = None