Skip to content

Commit cb97a19

Browse files
authored
Merge pull request #20582 from mvdbeek/apply_rules_fix
[24.2] Fix apply rules ownership check
2 parents 6a90101 + 0649894 commit cb97a19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/galaxy/tools/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4017,14 +4017,15 @@ def produce_outputs(self, trans, out_data, output_collections, incoming, history
40174017

40184018
def copy_dataset(dataset, tags):
40194019
copied_dataset = dataset.copy(copy_tags=dataset.tags, flush=False)
4020+
copied_dataset.history_id = history.id
4021+
copied_dataset.history = history
40204022
if tags is not None:
40214023
trans.tag_handler.set_tags_from_list(
40224024
trans.get_user(),
40234025
copied_dataset,
40244026
tags,
40254027
flush=False,
40264028
)
4027-
copied_dataset.history_id = history.id
40284029
copied_datasets.append(copied_dataset)
40294030
return copied_dataset
40304031

0 commit comments

Comments
 (0)