From b7bbb77aaa64af59c495ce073ef28cdea3b21641 Mon Sep 17 00:00:00 2001 From: jasder Date: Thu, 4 Apr 2019 15:48:23 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=E8=BF=87=E6=BB=A4=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/managements_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 75ee3edf..b720de0a 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -1279,9 +1279,9 @@ end @partner = Partner.where(:id => params[:partner]).first @members = if params[:search] - User.where("LOWER(concat(lastname, firstname, nickname, mail)) LIKE '%#{params[:search]}%'") + User.where("LOWER(concat(lastname, firstname, nickname, mail)) LIKE '%#{params[:search]}%' AND partner_id is NULL") else - User.where(:certification => 1) + User.where(:certification => 1, :partner_id => nil ) end @members = paginateHelper @members, 8 respond_to do |format|