Commit 4061b1f2ee81c2d1dd9759ba1eaba1af589baa9e
Committed by
Gust
1 parent
c314739f
Exists in
master
and in
5 other branches
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>
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
lib/mpog_software_plugin.rb
@@ -65,7 +65,7 @@ class MpogSoftwarePlugin < Noosfero::Plugin | @@ -65,7 +65,7 @@ class MpogSoftwarePlugin < Noosfero::Plugin | ||
65 | end | 65 | end |
66 | end | 66 | end |
67 | 67 | ||
68 | - def profile_editor_extras show_sisp_field | 68 | + def profile_editor_extras show_sisp_field=true |
69 | @show_sisp_field = show_sisp_field | 69 | @show_sisp_field = show_sisp_field |
70 | if context.profile.person? | 70 | if context.profile.person? |
71 | expanded_template('person_editor_extras.html.erb') | 71 | expanded_template('person_editor_extras.html.erb') |
views/institution_editor_extras.html.erb
@@ -36,7 +36,7 @@ | @@ -36,7 +36,7 @@ | ||
36 | </div> | 36 | </div> |
37 | </span> | 37 | </span> |
38 | 38 | ||
39 | -<% if @show_sisp_field[0] %> | 39 | +<% if @show_sisp_field %> |
40 | <span class= 'public-institutions-fields'> | 40 | <span class= 'public-institutions-fields'> |
41 | <div class="formfieldline"> | 41 | <div class="formfieldline"> |
42 | <%= _("SISP?") %> | 42 | <%= _("SISP?") %> |