Commit c3069314d7be66f0a86556dae735a38832266eda
1 parent
e221f5f1
Exists in
master
and in
5 other branches
Fix remove/add institutions on edit user page
Signed-off-by: Gustavo Jaruga <darksshades@gmail.com> Signed-off-by: Parley Martins <parley@outlook.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/mpog_software_plugin.rb
... | ... | @@ -116,7 +116,7 @@ class MpogSoftwarePlugin < Noosfero::Plugin |
116 | 116 | is_admin = environment.admins.include?(current_user.person) |
117 | 117 | |
118 | 118 | unless is_admin |
119 | - institution = profile.institution | |
119 | + institution = profile.user.institutions | |
120 | 120 | params[:institution][:sisp] = institution.sisp if params[:institution][:sisp] != institution.sisp |
121 | 121 | end |
122 | 122 | end | ... | ... |