app/commands/decidim/debates/admin/update_debate.rb in decidim-debates-0.22.0 vs app/commands/decidim/debates/admin/update_debate.rb in decidim-debates-0.23.0
- old
+ new
@@ -28,15 +28,18 @@
private
attr_reader :debate, :form
def update_debate
+ parsed_title = Decidim::ContentProcessor.parse_with_processor(:hashtag, form.title, current_organization: form.current_organization).rewrite
+ parsed_description = Decidim::ContentProcessor.parse_with_processor(:hashtag, form.description, current_organization: form.current_organization).rewrite
+
Decidim.traceability.update!(
debate,
form.current_user,
category: form.category,
- title: form.title,
- description: form.description,
+ title: parsed_title,
+ description: parsed_description,
information_updates: form.information_updates,
instructions: form.instructions,
end_time: form.end_time,
start_time: form.start_time
)