From 1e5ff222100e2ec876198bcdb9b019b8d4d13c25 Mon Sep 17 00:00:00 2001 From: Kristina Spurgin Date: Thu, 4 Feb 2021 16:20:32 -0500 Subject: [PATCH] do not attempt to validate "refnames" equal to "%NULLVALUE%" --- lib/collectionspace/mapper/data_quality_checker.rb | 4 ++-- lib/collectionspace/mapper/version.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/collectionspace/mapper/data_quality_checker.rb b/lib/collectionspace/mapper/data_quality_checker.rb index cfae57d8..a2703eb4 100644 --- a/lib/collectionspace/mapper/data_quality_checker.rb +++ b/lib/collectionspace/mapper/data_quality_checker.rb @@ -27,9 +27,9 @@ def initialize(mapping, data) def validate_refnames if @data.first.is_a?(String) - @data.each{ |val| validate_refname(val) unless val.blank? } + @data.each{ |val| validate_refname(val) unless val.blank? || val == '%NULLVALUE%' } else - @data.each{ |arr| arr.each{ |val| validate_refname(val) unless val.blank? } } + @data.each{ |arr| arr.each{ |val| validate_refname(val) unless val.blank? || val == '%NULLVALUE%' } } end end diff --git a/lib/collectionspace/mapper/version.rb b/lib/collectionspace/mapper/version.rb index 29ec2fa9..73adfce4 100644 --- a/lib/collectionspace/mapper/version.rb +++ b/lib/collectionspace/mapper/version.rb @@ -1,5 +1,5 @@ module CollectionSpace module Mapper - VERSION = "2.1.3" + VERSION = "2.1.4" end end