Skip to content
Snippets Groups Projects
Unverified Commit 64d26c7e authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

ordered blocks in content migration

parent 2370053c
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ class ContentMigration
puts "----------------------[migration] #{object} - #{object.class} - #{object.id}"
heading = nil
heading_position = 0
object.blocks.published.each do |block|
object.blocks.published.ordered.each do |block|
# ignore blocks already inside headings
next if block.heading.present?
# Move title from block to heading
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment