mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Bugfix: Don't require matching identifiers to match up collections.
I changed this in some other places in the code before committing but this part stayed broken. Collections will match on order, type, and number of elements (pushing the problem to UI) - element identifiers can be different but will be preserved when possible.
This commit is contained in:
@@ -63,9 +63,6 @@ class Tree( object ):
|
||||
return False
|
||||
|
||||
for my_child, other_child in zip( self.children, other_structure.children ):
|
||||
if my_child[ 0 ] != other_child[ 0 ]: # Different identifiers, TODO: generalize
|
||||
return False
|
||||
|
||||
# At least one is nested collection...
|
||||
if my_child[ 1 ].is_leaf != other_child[ 1 ].is_leaf:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user