diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-02-05 05:06:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-05 05:06:34 +0100 |
commit | e03e7ac290f1458e105acc1bcfd7c0a3b04826ff (patch) | |
tree | 9cc461c6aa68fcbef97376d0f86b4c25617bb313 /app/controllers | |
parent | 6a649e91311b69d7a0c7c71dbb2e9662e6b06662 (diff) |
Fix error on account relationships page in admin UI (#17444)
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/admin/relationships_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/admin/relationships_controller.rb b/app/controllers/admin/relationships_controller.rb index f8a95cfc8..085ded21c 100644 --- a/app/controllers/admin/relationships_controller.rb +++ b/app/controllers/admin/relationships_controller.rb @@ -9,7 +9,8 @@ module Admin def index authorize :account, :index? - @accounts = RelationshipFilter.new(@account, filter_params).results.page(params[:page]).per(PER_PAGE) + @accounts = RelationshipFilter.new(@account, filter_params).results.includes(:account_stat, user: [:ips, :invite_request]).page(params[:page]).per(PER_PAGE) + @form = Form::AccountBatch.new end private |