app/services/hyrax/work_uploads_handler.rb in hyrax-5.0.0.rc1 vs app/services/hyrax/work_uploads_handler.rb in hyrax-5.0.0.rc2
- old
+ new
@@ -122,10 +122,10 @@
##
# @api private
#
# @todo figure out how to know less about Work's ideas about FileSet use here. Maybe post-Wings, work.
def append_to_work(file_set)
- work.member_ids << file_set.id
+ work.member_ids += [file_set.id]
work.representative_id = file_set.id if work.respond_to?(:representative_id) && work.representative_id.blank?
work.thumbnail_id = file_set.id if work.respond_to?(:thumbnail_id) && work.thumbnail_id.blank?
end
##