Skip to content

Commit

Permalink
Merge pull request #5966 from avalonmediasystem/cjcolvar-patch-4
Browse files Browse the repository at this point in the history
Get rid of nil ids when migrating to section lists
  • Loading branch information
masaball authored Aug 1, 2024
2 parents 1584d59 + 50615ec commit d36da13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/media_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def section_ids
return @section_ids if @section_ids

# Do migration
self.section_ids = self.ordered_master_file_ids if self.section_list.nil?
self.section_ids = self.ordered_master_file_ids.compact if self.section_list.nil?

return [] if self.section_list.nil?
@section_ids = JSON.parse(self.section_list)
Expand Down

0 comments on commit d36da13

Please sign in to comment.