Skip to content

Commit

Permalink
Merge pull request #94 from collectionspace/refname-validation-fix
Browse files Browse the repository at this point in the history
do not attempt to validate "refnames" equal to "%NULLVALUE%"
  • Loading branch information
kspurgin authored Feb 4, 2021
2 parents a2a83f6 + 1e5ff22 commit 7a91431
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/collectionspace/mapper/data_quality_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/collectionspace/mapper/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module CollectionSpace
module Mapper
VERSION = "2.1.3"
VERSION = "2.1.4"
end
end

0 comments on commit 7a91431

Please sign in to comment.