Procházet zdrojové kódy

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

Jose Miguel Ledon před 7 roky
rodič
revize
5930de86e4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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