Merge branch 'dev_partners' of https://bdgit.educoder.net/Hjqreturn/pgfqe6ch8 into dev_partners

dev_local
cxt 6 years ago
commit ccede5b5a0

@ -1328,8 +1328,7 @@ end
@partner = Partner.where(:id => params[:partner]).first
@members =
if params[:search]
User.where("LOWER(concat(lastname, firstname, nickname, mail)) LIKE ?", "%#{params[:search]}%").
where(:certification => 1, :partner_id => nil)
User.where("LOWER(concat(lastname, firstname, nickname, mail)) LIKE '%#{params[:search]}%' AND partner_id is NULL")
else
User.where(:certification => 1, :partner_id => nil )
end

Loading…
Cancel
Save