Просмотр исходного кода

bugfix in available products table

chemi ledon 7 лет назад
Родитель
Сommit
5063933b35
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/datatables/available_products_datatable.rb

+ 1 - 1
app/datatables/available_products_datatable.rb

@@ -80,7 +80,7 @@ class AvailableProductsDatatable
       products = products.where("products.sku ilike :search or products.name ilike :search", search: "%#{name_searched}%").order('products.name')
       if search.include? ':'
         attribute = search[search.index(':') + 1, search.length]
-        products = products.where('attributes_json ilike :attribute', attribute: "%#{attribute}%")
+        products = products.where('products.attributes_json ilike :attribute', attribute: "%#{attribute}%")
       end
     end