commit/galaxy-central: dan: Fix for refreshing current history when copying datasets.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/2b92273f24b1/ Changeset: 2b92273f24b1 User: dan Date: 2013-05-07 22:46:47 Summary: Fix for refreshing current history when copying datasets. Affected #: 1 file diff -r 6c462a5a566db9923a344b2bc8a89a797679aaa3 -r 2b92273f24b12372c77e8bf49bb59bda1def09d9 lib/galaxy/webapps/galaxy/controllers/dataset.py --- a/lib/galaxy/webapps/galaxy/controllers/dataset.py +++ b/lib/galaxy/webapps/galaxy/controllers/dataset.py @@ -1034,8 +1034,9 @@ user = trans.get_user() if source_history is not None: history = self.get_history(trans, source_history) + current_history = trans.get_history() else: - history = trans.get_history() + history = current_history = trans.get_history() refresh_frames = [] if source_dataset_ids: if not isinstance( source_dataset_ids, list ): @@ -1083,7 +1084,7 @@ else: for hist in target_histories: hist.add_dataset( hda.copy( copy_children = True ) ) - if history in target_histories: + if current_history in target_histories: refresh_frames = ['history'] trans.sa_session.flush() hist_names_str = ", ".join( ['<a href="%s" target="_top">%s</a>' % @@ -1100,7 +1101,7 @@ target_histories = user.active_histories return trans.fill_template( "/dataset/copy_view.mako", source_history = history, - current_history = trans.get_history(), + current_history = current_history, source_dataset_ids = source_dataset_ids, target_history_id = target_history_id, target_history_ids = target_history_ids, 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)
-
commits-noreply@bitbucket.org