|
|
@@ -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
|
|
|
|