|
|
@ -1328,10 +1328,9 @@ end
|
|
|
|
@partner = Partner.where(:id => params[:partner]).first
|
|
|
|
@partner = Partner.where(:id => params[:partner]).first
|
|
|
|
@members =
|
|
|
|
@members =
|
|
|
|
if params[:search]
|
|
|
|
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")
|
|
|
|
where(:certification => 1, :partner_id => nil)
|
|
|
|
|
|
|
|
else
|
|
|
|
else
|
|
|
|
User.where(:certification => 1, :partner_id => nil)
|
|
|
|
User.where(:certification => 1, :partner_id => nil )
|
|
|
|
end
|
|
|
|
end
|
|
|
|
@total_pages = (@members.count / 10.0).ceil
|
|
|
|
@total_pages = (@members.count / 10.0).ceil
|
|
|
|
@members = paginateHelper @members, 10
|
|
|
|
@members = paginateHelper @members, 10
|
|
|
|