Skip to content

Commit

Permalink
Import item files hide bit when migrating items
Browse files Browse the repository at this point in the history
Connects to #1199
  • Loading branch information
mjgiarlo authored and jcoyne committed Jun 3, 2021
1 parent 4af1f84 commit b175739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/migrate-items
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def attach_files(json, work_version)
next if attached_file

File.open(pathname) do |file|
attached_file = work_version.attached_files.build(label: file_data['label'])
attached_file = work_version.attached_files.build(label: file_data['label'], hide: file_data['hide'])
attached_file.file.attach(io: file, filename: filename)
attached_file.save!
end
Expand Down

0 comments on commit b175739

Please sign in to comment.