Browse Source

Merge branch 'chemi_branch' of SML/pos-boutique into master

Jose Miguel Ledon 7 năm trước cách đây
mục cha
commit
5930de86e4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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