Skip to content

Commit

Permalink
don't blow up on a nil in question_closed_datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
jambun committed Oct 21, 2024
1 parent b4bfad1 commit 8396e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/model/reftracker_mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def self.map_accession(qp, agent_uri, subject_uris)

acc['id_0'] = qp['bib_udf_tb03']

acc['accession_date'] = qp['question_closed_datetime'].split[0]
acc['accession_date'] = qp.fetch('question_closed_datetime', '').split[0]

acc['acquisition_type'] = qp['question_udf_cl03'].downcase
acc['content_description'] = qp['question_udf_ta08'] || qp['question_text']
Expand Down

0 comments on commit 8396e71

Please sign in to comment.