Merge pull request #2246 from opf/hotfix/17510_premature_update_of_membership_data

17510 Stop premature update of membership data
pull/2244/head
Alex Coles 10 years ago
commit 450e5714e1
  1. 2
      app/controllers/members_controller.rb

@ -216,7 +216,7 @@ class MembersController < ApplicationController
role_ids = attrs.delete(:role_ids).map(&:to_i).select{ |i| i > 0 }
@member.assign_roles(role_ids)
end
@member.update_attributes(attrs)
@member.assign_attributes(attrs)
@member
end
end

Loading…
Cancel
Save