Commit 890dad5d authored by hh1966's avatar hh1966
Browse files

Fix import_collections

parent 245a347a
......@@ -76,7 +76,7 @@ module Import
@data.fetch('Collection', []).each do |uuid, fields|
# check the ancestry for parents
ancestry = fields.fetch('ancestry')
if ancestry
if not ancestry.empty?
parents = ancestry.split('/')
parent_uuid = parents[-1]
parent = @instances.fetch('Collection').fetch(parent_uuid)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment