diff --git a/lib/galaxy/dataset_collections/subcollections.py b/lib/galaxy/dataset_collections/subcollections.py index 2ee4336c905..6a18d1a7f31 100644 --- a/lib/galaxy/dataset_collections/subcollections.py +++ b/lib/galaxy/dataset_collections/subcollections.py @@ -20,6 +20,6 @@ def _split_dataset_collection( dataset_collection, collection_type ): if child_collection.collection_type == collection_type: split_elements.append( element ) else: - split_elements.extend( _split_dataset_collection( element.child_collection ) ) + split_elements.extend( _split_dataset_collection( element.child_collection, element.child_collection.collection_type ) ) return split_elements