Bug recherche marques sur références

This commit is contained in:
Nicolas Bally 2021-09-17 00:18:04 +02:00
parent 1609c92ab7
commit 57bac61ac9

View File

@ -42,7 +42,7 @@ class Admin::PProductRefsController < ApplicationController
if params[:search][:s_brand_id].to_s != "" if params[:search][:s_brand_id].to_s != ""
@p_product_refs = @p_product_refs.where(:s_brand_id => params[:search][:s_brand_id]) @p_product_refs = @p_product_refs.where(:p_products => {:s_brand_id => params[:search][:s_brand_id]})
end end
@p_product_refs = sort_by_sorting(@p_product_refs, "id DESC") @p_product_refs = sort_by_sorting(@p_product_refs, "id DESC")