From 57bac61ac9fd1bfc0f9f0fca199e52de9b59f6cc Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Fri, 17 Sep 2021 00:18:04 +0200 Subject: [PATCH] =?UTF-8?q?Bug=20recherche=20marques=20sur=20r=C3=A9f?= =?UTF-8?q?=C3=A9rences?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/admin/p_product_refs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/p_product_refs_controller.rb b/app/controllers/admin/p_product_refs_controller.rb index 1f2017e..ecec7c3 100644 --- a/app/controllers/admin/p_product_refs_controller.rb +++ b/app/controllers/admin/p_product_refs_controller.rb @@ -42,7 +42,7 @@ class Admin::PProductRefsController < ApplicationController 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 @p_product_refs = sort_by_sorting(@p_product_refs, "id DESC")