Skip to content
Snippets Groups Projects
Commit a40a638d authored by Arnaud Levy's avatar Arnaud Levy
Browse files

fix

parent 23e3844d
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ class ContentMigration
# ignore blocks already inside headings
next if block.heading.present?
# Move title from block to heading
if block.title.present?
if block.title.present? && !block.call_to_action? # call to actions keep their title
heading = object.headings.create(university: object.university)
heading.title = block.title
heading.position = heading_position
......
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