From 4ed0118ebdb66c87f2c1aa80176bee90f30574cb Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Mon, 1 Jun 2026 15:04:16 +0200 Subject: [PATCH] fix --- lib/galaxy/tools/actions/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/galaxy/tools/actions/__init__.py b/lib/galaxy/tools/actions/__init__.py index 50429437766..3088a070043 100644 --- a/lib/galaxy/tools/actions/__init__.py +++ b/lib/galaxy/tools/actions/__init__.py @@ -941,8 +941,12 @@ class DefaultToolAction(ToolAction): for input_name in inp_data: data = inp_data[input_name] + # Skip collection inputs and any suffixed dataset names derived from them (e.g., "datasets1", "datasets2") if input_name in inp_dataset_collections: continue + # Also skip if the name starts with a collection input key and the remainder is a numeric suffix + if any(input_name.startswith(key) and input_name[len(key) :].isdigit() for key in inp_dataset_collections): + continue if getattr(data, "hid", None): input_hids.append(data.hid) return on_text_for_dataset_and_collections(dataset_hids=input_hids, collection_hids=collection_hids)