Open aaronsmulktis opened 3 years ago
I get this error when using "Customer Search" on the Order edit page:
web_1 | (3.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_role_users" ON "spree_roles"."id" = "spree_role_users"."role_id" WHERE "spree_role_users"."user_id" = $1 [["user_id", 1]] web_1 | ↳ app/controllers/spree/api/base_controller.rb:78:in `load_user_roles' web_1 | Rendering /usr/local/bundle/bundler/gems/spree-6bda546328a3/api/app/views/spree/api/v1/users/index.rabl web_1 | Rendered /usr/local/bundle/bundler/gems/spree-6bda546328a3/api/app/views/spree/api/v1/users/index.rabl (Duration: 1.6ms | Allocations: 1606) web_1 | Completed 500 Internal Server Error in 56ms (ActiveRecord: 8.7ms | Allocations: 46852) web_1 | web_1 | web_1 | web_1 | ActionView::Template::Error (undefined method `count' for nil:NilClass): web_1 | 1: object false web_1 | 2: child(@users => :users) do web_1 | 3: extends 'spree/api/v1/users/show' web_1 | 4: end web_1 | 5: node(:count) { @users.count } web_1 | 6: node(:current_page) { params[:page].try(:to_i) || 1 } web_1 | web_1 | (eval):6:in `block in cached_source_954957783935605124'
There is definitely a user with an email + name existing in the DB that I am searching for
I get this error when using "Customer Search" on the Order edit page: