Merge pull request #6065 from jmchilton/rule_fixes_4

[18.05] Rules - bug fix for apply_rules tool on nested collections.
This commit is contained in:
Martin Cech
2018-05-04 16:44:12 -04:00
committed by GitHub
+2 -2
View File
@@ -487,9 +487,9 @@ class DatasetCollectionManager(object):
data.append([])
sources.append({"identifiers": identifiers, "dataset": element_object})
else:
child_collection_type = collection_type_description.child_collection_type()
child_collection_type_description = collection_type_description.child_collection_type_description()
element_data, element_sources = self.__init_rule_data(
element_object.elements, child_collection_type, identifiers
element_object.elements, child_collection_type_description, identifiers
)
data.extend(element_data)
sources.extend(element_sources)