diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 264012bb..48b2e05a 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -1184,9 +1184,7 @@ end end @partners.each do |part| - if part.id == @current_partner.id - part.active = "active" - end + part.active = "active" if part.id == @current_partner.id end end @@ -1299,7 +1297,7 @@ end end end - redirects_to + redirect_to partners_managements_path end # check 部门 identifier是否重复 diff --git a/app/views/managements/partners.html.erb b/app/views/managements/partners.html.erb index c7ba2b8e..a7f55eed 100644 --- a/app/views/managements/partners.html.erb +++ b/app/views/managements/partners.html.erb @@ -24,7 +24,7 @@ 管理员