From 4061b1f2ee81c2d1dd9759ba1eaba1af589baa9e Mon Sep 17 00:00:00 2001 From: ParleyMartins Date: Wed, 20 Aug 2014 15:56:04 +0000 Subject: [PATCH] institution_fields: Fix the edit of institutions with the sisp field. --- lib/mpog_software_plugin.rb | 2 +- views/institution_editor_extras.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mpog_software_plugin.rb b/lib/mpog_software_plugin.rb index 23146b0..535629c 100644 --- a/lib/mpog_software_plugin.rb +++ b/lib/mpog_software_plugin.rb @@ -65,7 +65,7 @@ class MpogSoftwarePlugin < Noosfero::Plugin end end - def profile_editor_extras show_sisp_field + def profile_editor_extras show_sisp_field=true @show_sisp_field = show_sisp_field if context.profile.person? expanded_template('person_editor_extras.html.erb') diff --git a/views/institution_editor_extras.html.erb b/views/institution_editor_extras.html.erb index 0663856..c1f827c 100644 --- a/views/institution_editor_extras.html.erb +++ b/views/institution_editor_extras.html.erb @@ -36,7 +36,7 @@ -<% if @show_sisp_field[0] %> +<% if @show_sisp_field %>
<%= _("SISP?") %> -- libgit2 0.21.2