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

fix

parent 170e6cb4
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,8 @@ class Communication::Website::Imported::Post < ApplicationRecord
self.post.save
end
# TODO only if not modified since import
post.title = Wordpress.clean title.to_s
title = Wordpress.clean title.to_s
post.title = title unless title.blank? # If there is no title, leave it with "Untitled"
post.slug = slug
post.description = Wordpress.clean excerpt.to_s
post.text = Wordpress.clean content.to_s
......
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