Commit f8fa21015348ce0e9a2d1c96eaf93248211453fc

Authored by Parley
Committed by Arthur Esposte
1 parent d28d0372

institution_fields: Fix the edit of institutions with the sisp field.

Signed-off-by: David Carlos <ddavidcarlos1392@gmail.com>
Signed-off-by: Parley Martins <parley@outlook.com>
lib/mpog_software_plugin.rb
... ... @@ -65,7 +65,7 @@ class MpogSoftwarePlugin &lt; Noosfero::Plugin
65 65 end
66 66 end
67 67  
68   - def profile_editor_extras show_sisp_field
  68 + def profile_editor_extras show_sisp_field=true
69 69 @show_sisp_field = show_sisp_field
70 70 if context.profile.person?
71 71 expanded_template('person_editor_extras.html.erb')
... ...
views/institution_editor_extras.html.erb
... ... @@ -36,7 +36,7 @@
36 36 </div>
37 37 </span>
38 38  
39   -<% if @show_sisp_field[0] %>
  39 +<% if @show_sisp_field %>
40 40 <span class= 'public-institutions-fields'>
41 41 <div class="formfieldline">
42 42 <%= _("SISP?") %>
... ...