lib/rbbt/tsv/attach.rb in rbbt-util-5.14.28 vs lib/rbbt/tsv/attach.rb in rbbt-util-5.14.29
- old
+ new
@@ -180,10 +180,10 @@
in_namespace = options[:in_namespace]
unless TSV === other
other_identifier_file = other.identifier_files.first if other.respond_to? :identifier_files
other = TSV.open(other, :persist => options[:persist_input] == true)
- other.identifiers = other_identifier_file
+ other.identifiers ||= other_identifier_file
end
fields = other.fields - [key_field].concat(self.fields) if fields.nil? or fields == :all
if in_namespace
fields = other.fields_in_namespace - [key_field].concat(self.fields) if fields.nil?