[Git][noosfero/noosfero][master] CustomFormsPlugin: avoid html safe for nil class

Leandro Nunes gitlab at mg.gitlab.com
Mon Jul 4 18:21:08 BRT 2016


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
4c3b31a3 by Leandro Nunes dos Santos at 2016-07-04T18:19:18-03:00
CustomFormsPlugin: avoid html safe for nil class

- - - - -


1 changed file:

- plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb


Changes:

=====================================
plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb
=====================================
--- a/plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb
+++ b/plugins/custom_forms/views/custom_forms_plugin_profile/show.html.erb
@@ -1,7 +1,7 @@
 <div id="custom-forms-plugin_submission">
 
 <h1><%= @form.name %></h1>
-<p><%= @form.description.html_safe %></p>
+<p><%= (@form.description || "").html_safe %></p>
 
 <% if @submission.id.nil? %>
   <% if @form.expired? %>



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/4c3b31a39a915d8c2fccad157706417c1eab688f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160704/49ee6d46/attachment.html>


More information about the Noosfero-dev mailing list