Commit 4c3b31a39a915d8c2fccad157706417c1eab688f
1 parent
41f4497b
Exists in
profile_api_improvements
and in
1 other branch
CustomFormsPlugin: avoid html safe for nil class
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb
1 | <div id="custom-forms-plugin_submission"> | 1 | <div id="custom-forms-plugin_submission"> |
2 | 2 | ||
3 | <h1><%= @form.name %></h1> | 3 | <h1><%= @form.name %></h1> |
4 | -<p><%= @form.description.html_safe %></p> | 4 | +<p><%= (@form.description || "").html_safe %></p> |
5 | 5 | ||
6 | <% if @submission.id.nil? %> | 6 | <% if @submission.id.nil? %> |
7 | <% if @form.expired? %> | 7 | <% if @form.expired? %> |