diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 583de9ae..e59a2bad 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -178,8 +178,8 @@ class ManagementsController < ApplicationController @g = Gitlab.client if params[:search] if params[:search].to_i.to_s == params[:search].to_s - myshixun_id = Game.where(myshixun_id => params[:search].to_i).pluck(:myshixun_id) - game_myshixun_id = Game.where(id => params[:search].to_i).pluck(:myshixun_id) + myshixun_id = Game.where(:myshixun_id => params[:search].to_i).pluck(:myshixun_id) + game_myshixun_id = Game.where(:id => params[:search].to_i).pluck(:myshixun_id) myshixun_id = myshixun_id + game_myshixun_id else myshixun_id = Game.where(:identifier => params[:search]).pluck(:myshixun_id)